Fixed hidden outputs dropdown maintaining state even if every output is shown
This commit is contained in:
parent
c89f87baea
commit
f821036f3e
1 changed files with 6 additions and 0 deletions
|
|
@ -302,6 +302,12 @@ export default function GenericNode({
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (hiddenOutputs && hiddenOutputs.length == 0) {
|
||||||
|
setShowHiddenOutputs(false);
|
||||||
|
}
|
||||||
|
}, [hiddenOutputs]);
|
||||||
|
|
||||||
const memoizedNodeToolbarComponent = useMemo(() => {
|
const memoizedNodeToolbarComponent = useMemo(() => {
|
||||||
return (
|
return (
|
||||||
<NodeToolbar>
|
<NodeToolbar>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue