diff --git a/client/src/redux/show/showActions.js b/client/src/redux/show/showActions.js index b3fae603..756caeb3 100644 --- a/client/src/redux/show/showActions.js +++ b/client/src/redux/show/showActions.js @@ -40,6 +40,14 @@ export const postShow = (input, callback) => async dispatch => { show.repeat_rule.repeat_end_date = repeatEndDate.toDate(); } + if (show.show_details.custom == null) { + show.show_details.custom = {}; + } + + if (show.show_details.custom.record_audio == null) { + show.show_details.custom.record_audio = false; + } + const response = await axios.post(`${ROOT_SHOWS_URL}/`, show); dispatch({ type: SHOW_UPDATE, payload: response.data });