Open workflow copilot by default when no blocks exist (#4625)
This commit is contained in:
@@ -248,7 +248,9 @@ function Workspace({
|
||||
const [toDeleteCacheKeyValue, setToDeleteCacheKeyValue] = useState<
|
||||
string | null
|
||||
>(null);
|
||||
const [isCopilotOpen, setIsCopilotOpen] = useState(false);
|
||||
const [isCopilotOpen, setIsCopilotOpen] = useState(
|
||||
() => !initialNodes.some(isWorkflowBlockNode),
|
||||
);
|
||||
const [copilotMessageCount, setCopilotMessageCount] = useState(0);
|
||||
const copilotButtonRef = useRef<HTMLButtonElement>(null);
|
||||
const [
|
||||
|
||||
Reference in New Issue
Block a user