guard indexedItems watcher so it won't run unnecessarily

This commit is contained in:
chfhtw
2026-04-20 14:05:16 +02:00
parent 4ab9056700
commit 187b4a6e4b
+5 -1
View File
@@ -232,7 +232,11 @@ export default {
},
indexedItems: {
handler(value) {
this.dragCancel();
if (!value?.length)
return;
if (this.mode != MODE_IDLE)
this.dragCancel();
const updated = this.createNewGrid(value);