card loading fixes

This commit is contained in:
smilerz
2021-09-10 11:37:27 -05:00
parent 14974c55cf
commit f6eb1b69cb
24 changed files with 148718 additions and 295 deletions

View File

@ -57,7 +57,7 @@ export default {
return this.new_value
} else if (!this.new_value) {
return []
} else if (this.new_value.id) {
} else if (typeof(this.new_value) === 'object') {
return [this.new_value]
} else {
return [{'id': -1, 'name': this.new_value}]
@ -83,8 +83,6 @@ export default {
console.log(err)
StandardToasts.makeStandardToast(StandardToasts.FAIL_CREATE)
})
this.show_modal = false
},
}
}