Test rodrigo
This commit is contained in:
parent
8e37556993
commit
3e034d71a7
1 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ export default function IOModal({
|
||||||
);
|
);
|
||||||
const haveChat = chatInput || chatOutput;
|
const haveChat = chatInput || chatOutput;
|
||||||
const [selectedTab, setSelectedTab] = useState(
|
const [selectedTab, setSelectedTab] = useState(
|
||||||
outputs.length > 0 ? 2 : inputs.length > 0 ? 1 : 0
|
inputs.length > 0 ? 1 : outputs.length > 0 ? 2 : 0
|
||||||
);
|
);
|
||||||
|
|
||||||
function startView() {
|
function startView() {
|
||||||
|
|
@ -116,8 +116,8 @@ export default function IOModal({
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setSelectedViewField(startView());
|
setSelectedViewField(startView());
|
||||||
setSelectedTab(outputs.length > 0 ? 2 : inputs.length > 0 ? 1 : 0);
|
setSelectedTab(inputs.length > 0 ? 1 : outputs.length > 0 ? 2 : 0);
|
||||||
}, [inputs, inputs.length, outputs, outputs.length]);
|
}, [inputs.length, outputs.length, open]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseModal
|
<BaseModal
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue