Open chat

This commit is contained in:
Lucas Oliveira 2024-02-24 22:36:28 +01:00
commit 2913abb7bf

View file

@ -27,7 +27,7 @@ export default function IOView({ children, open, setOpen }): JSX.Element {
node.type !== "ChatOutput"
);
const haveChat = useFlowStore((state) => state.outputs).some(
(output) => output.type === "ChatOutput"
(output) => output.type === "ChatOutput" || output.type === "ChatInput"
);
const [selectedTab, setSelectedTab] = useState(
inputs.length > 0 ? 1 : outputs.length > 0 ? 2 : 0