mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
guard indexedItems watcher so it won't run unnecessarily
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user