Skip to content

Commit 8fdb279

Browse files
AgentGUIclaude
andcommitted
fix: guard togglePopup against missing event argument
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7153a88 commit 8fdb279

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

static/js/tools-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
applyDiff(scroll, vnodes);
143143
}
144144

145-
function togglePopup(e) { e.stopPropagation(); if (!popup.classList.contains('open')) { isRefreshing = false; refresh(); } popup.classList.toggle('open'); }
145+
function togglePopup(e) { if (e) e.stopPropagation(); if (!popup.classList.contains('open')) { isRefreshing = false; refresh(); } popup.classList.toggle('open'); }
146146
function closePopup() { popup.classList.remove('open'); }
147147
function refresh() { fetchTools(); }
148148

0 commit comments

Comments
 (0)