fix notification settings actions (#216)
This commit is contained in:
@@ -73,6 +73,9 @@ export default {
|
|||||||
watch: {},
|
watch: {},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
|
if(!this.form.notification_settings.discord){
|
||||||
|
this.form.notification_settings.discord = {}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {}
|
methods: {}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
content: this.value
|
content: this.value ?? {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ export default {
|
|||||||
|
|
||||||
watch: {},
|
watch: {},
|
||||||
|
|
||||||
mounted () {
|
created () {
|
||||||
if(this.compVal === undefined || this.compVal === null){
|
if(this.compVal === undefined || this.compVal === null){
|
||||||
this.compVal = {}
|
this.compVal = {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,6 +74,9 @@ export default {
|
|||||||
watch: {},
|
watch: {},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
|
if(!this.form.notification_settings.slack){
|
||||||
|
this.form.notification_settings.slack = {}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {}
|
methods: {}
|
||||||
|
|||||||
@@ -108,6 +108,10 @@ export default {
|
|||||||
this.updatedForm = new Form(this.form)
|
this.updatedForm = new Form(this.form)
|
||||||
this.formInitialHash = this.hashString(JSON.stringify(this.updatedForm.data()))
|
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: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user