From aa526445a6b2cb025c117975710cca6fb0cdeaa6 Mon Sep 17 00:00:00 2001 From: Kasen IO Date: Thu, 9 Apr 2020 02:37:04 -0400 Subject: [PATCH] Optimize folder actions. --- scripts/system/inventory/src/App.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/system/inventory/src/App.vue b/scripts/system/inventory/src/App.vue index edce5dea6b..100a61ec74 100644 --- a/scripts/system/inventory/src/App.vue +++ b/scripts/system/inventory/src/App.vue @@ -1108,6 +1108,8 @@ export default { for (var i = 0; i < this.items.length; i++) { if (this.items[i].uuid == uuid) { this.items[i].name = this.editFolderDialog.data.name; + + return; } } }, @@ -1148,6 +1150,8 @@ export default { for (var i = 0; i < this.items.length; i++) { if (this.items[i].uuid == uuid) { this.items.splice(i, 1); + + return; } } },