From 1561f09da826e31dd6b9ea293f92678e5ee21787 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sun, 4 Aug 2024 16:26:33 +0100 Subject: [PATCH] Remove --- src/scripts/domWidget.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/scripts/domWidget.ts b/src/scripts/domWidget.ts index dd6aff77f..146f214ba 100644 --- a/src/scripts/domWidget.ts +++ b/src/scripts/domWidget.ts @@ -226,11 +226,8 @@ LGraphCanvas.prototype.computeVisibleNodes = function (): LGraphNode[] { if (elementWidgets.has(node)) { const hidden = visibleNodes.indexOf(node) === -1 for (const w of node.widgets) { - // @ts-expect-error if (w.element) { - // @ts-expect-error w.element.hidden = hidden - // @ts-expect-error w.element.style.display = hidden ? 'none' : undefined if (hidden) { w.options.onHide?.(w)