From 4217978eaae1d058daf443645884f8b73c94aa3e Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 16 Jul 2026 09:24:24 -0400 Subject: [PATCH] fix: ctxMenuDelete triggers sidebar refresh via flowdeck:sidebar-refresh deleteWithUndo() (called by ctxMenuDelete) was removing the node from the local tree but never notifying the sidebar to refresh. Added dispatch of 'flowdeck:sidebar-refresh' event so the sidebar tree updates dynamically without requiring a full page reload. --- app/templates/local_workspace.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 8f1db8a..7515896 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -1224,6 +1224,8 @@ window._wsInitData = (function() { self.undoVisible = false; self.undoItemId = null; }, 5000); + // Notify sidebar to refresh its tree + document.dispatchEvent(new CustomEvent('flowdeck:sidebar-refresh')); }, undoDelete() { if (this.undoTimeout) clearTimeout(this.undoTimeout);