ingredient editor improve merge/delete add edit

This commit is contained in:
vabene1111
2022-04-23 02:17:40 +02:00
parent 30d5587fbe
commit 78c0c5c213
3 changed files with 83 additions and 14 deletions

View File

@@ -140,7 +140,7 @@ export default {
},
nothingSelected() {
if (this.multiple || !this.initial_single_selection) {
return this.selected_objects.length === 0 && this.initial_selection.length === 0
return this.selected_objects?.length === 0 && this.initial_selection?.length === 0
} else {
return !this.selected_objects && !this.initial_single_selection
}