From 187b4a6e4b44f6cf9abc24b60211adc30e2ac83f Mon Sep 17 00:00:00 2001 From: chfhtw Date: Mon, 20 Apr 2026 14:05:16 +0200 Subject: [PATCH] guard indexedItems watcher so it won't run unnecessarily --- public/js/components/Drop/Grid.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/components/Drop/Grid.js b/public/js/components/Drop/Grid.js index e4ffd5865..c13aea43f 100644 --- a/public/js/components/Drop/Grid.js +++ b/public/js/components/Drop/Grid.js @@ -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);