fix modal returning to input
This commit is contained in:
parent
e0e361d39c
commit
7d72254ac8
2 changed files with 1114 additions and 1111 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -116,10 +116,13 @@ export default function IOModal({
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setSelectedViewField(startView());
|
if(selectedTab!==2) setSelectedTab(inputs.length > 0 ? 1 : outputs.length > 0 ? 2 : 0);
|
||||||
setSelectedTab(inputs.length > 0 ? 1 : outputs.length > 0 ? 2 : 0);
|
|
||||||
}, [allNodes]);
|
}, [allNodes]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setSelectedViewField(startView());
|
||||||
|
},[open])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseModal
|
<BaseModal
|
||||||
size={selectedTab === 0 ? "large-thin" : "large"}
|
size={selectedTab === 0 ? "large-thin" : "large"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue