fix categories in supermarket edit modal

This commit is contained in:
smilerz
2021-12-21 13:40:50 -06:00
parent 63fe174070
commit b4510a2cc1
6 changed files with 21 additions and 9 deletions

View File

@ -80,9 +80,7 @@ export default {
} else {
arrayValues = [{ id: -1, name: this_value }]
}
console.log(arrayValues)
if (this.form?.ordered && this.first_run) {
if (this.form?.ordered && this.first_run && arrayValues.length > 0) {
return this.flattenItems(arrayValues)
} else {
return arrayValues