Skip to content

Commit

Permalink
Merge pull request #579 from ozamani9/fix_editserv
Browse files Browse the repository at this point in the history
set channel to original value when blank
  • Loading branch information
jhmccoll authored May 4, 2021
2 parents 4bad8f8 + 14b0224 commit 1132c7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/store/actions/actions-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1132c7e

Please sign in to comment.