From ccff0ba7cae06934fe7ccdb8cecb922e73457160 Mon Sep 17 00:00:00 2001 From: Christian Bastian <80225746+cdb-boop@users.noreply.github.com> Date: Sun, 8 Sep 2024 03:25:28 -0400 Subject: [PATCH] Added shallow copy to path --- web/model-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/model-manager.js b/web/model-manager.js index 80105cf..195f596 100644 --- a/web/model-manager.js +++ b/web/model-manager.js @@ -1926,7 +1926,7 @@ class ModelGrid { ), draggable: false, }); - const searchPath = item.path; + const searchPath = item.path.slice(); // shallow copy const path = SearchPath.systemPath(searchPath, searchSeparator, systemSeparator); let actionButtons = []; if (shouldShowTryOpenModelUrl) {