Skip to content

Commit

Permalink
fix notification settings actions (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
formsdev authored Oct 8, 2023
1 parent f7ecd6f commit 95b2870
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export default {
watch: {},
mounted () {
if(!this.form.notification_settings.discord){
this.form.notification_settings.discord = {}
}
},
methods: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
},
data () {
return {
content: this.value
content: this.value ?? {}
}
},
Expand All @@ -48,7 +48,7 @@ export default {
watch: {},
mounted () {
created () {
if(this.compVal === undefined || this.compVal === null){
this.compVal = {}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export default {
watch: {},
mounted () {
if(!this.form.notification_settings.slack){
this.form.notification_settings.slack = {}
}
},
methods: {}
Expand Down
4 changes: 4 additions & 0 deletions resources/js/pages/forms/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ export default {
this.updatedForm = new Form(this.form)
this.formInitialHash = this.hashString(JSON.stringify(this.updatedForm.data()))
}
if(!this.updatedForm.notification_settings || Array.isArray(this.updatedForm.notification_settings)){
this.updatedForm.notification_settings = {}
}
},
methods: {
Expand Down

0 comments on commit 95b2870

Please sign in to comment.