Fixed if/else that is not on useEffect
This commit is contained in:
parent
09c21fca06
commit
7ceaefd651
1 changed files with 5 additions and 4 deletions
|
|
@ -220,10 +220,11 @@ export default function ParameterComponent({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If optionalHandle is an empty list, then it is not an optional handle
|
useEffect(() => {
|
||||||
if (optionalHandle && optionalHandle.length === 0) {
|
if (optionalHandle && optionalHandle.length === 0) {
|
||||||
optionalHandle = null;
|
optionalHandle = null;
|
||||||
}
|
}
|
||||||
|
}, [optionalHandle]);
|
||||||
|
|
||||||
const handleUpdateOutputHide = (value?: boolean) => {
|
const handleUpdateOutputHide = (value?: boolean) => {
|
||||||
setNode(data.id, (oldNode) => {
|
setNode(data.id, (oldNode) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue