From 14b0224cbec70bd2f472e46ea7d58df229d78153 Mon Sep 17 00:00:00 2001 From: Omid Zamani Date: Tue, 4 May 2021 08:17:18 -0700 Subject: [PATCH] set channel to original value when blank --- frontend/src/store/actions/actions-model.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/store/actions/actions-model.ts b/frontend/src/store/actions/actions-model.ts index 1872847dd..77b19e008 100644 --- a/frontend/src/store/actions/actions-model.ts +++ b/frontend/src/store/actions/actions-model.ts @@ -2368,6 +2368,9 @@ export const commonActions: any = { const setup = context.state.addModalSetup const { form_data } = context.getters if (setup === 'add_mode' || setup === 'edit_mode') { + if (form_data.channel === '') { + form_data.channel = compareService.channel_id + } if (form_data.channel != compareService.channel_id) { data.channel_id = form_data.channel }