Fixes bug where attempting to edit a schedule with stringified extra_data threw error (#13795)

This commit is contained in:
Michael Abashian 2023-04-10 08:33:25 -04:00 committed by GitHub
parent 80ebe13841
commit 0b1b866128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,9 @@ function ScheduleEdit({
days: values.daysToKeep,
});
} else {
if (typeof requestData.extra_data === 'string') {
requestData.extra_data = JSON.parse(requestData.extra_data);
}
requestData.extra_data.days = values.daysToKeep;
}
}