Skip to content

Commit 93c02a9

Browse files
committed
Use clearer check for proxyWidgets
1 parent 73045fc commit 93c02a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/graph/subgraph/proxyWidget.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ function resolveLinkedWidget(
160160
if (!n) return [undefined, undefined]
161161
const widget = n.widgets?.find((w: IBaseWidget) => w.name === widgetName)
162162
//Slightly hacky. Force recursive resolution of nested widgets
163-
if (widget?.type === 'button' && widget.disabled) widget.computedHeight = 20
163+
if (widget instanceof disconnectedWidget.constructor && isProxyWidget(widget))
164+
widget.computedHeight = 20
164165
return [n, widget]
165166
}
166167

0 commit comments

Comments
 (0)