mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix(frontend): handle visual editor default flow navigation
This commit is contained in:
parent
84f25ecfb1
commit
a93f3fcc86
@ -189,7 +189,8 @@ const Diagrams = () => {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
setSelectedCategoryId(flowId || "");
|
||||
if (flowId) setSelectedCategoryId(flowId);
|
||||
else if (categories?.length) setSelectedCategoryId(categories[0].id);
|
||||
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [flowId]);
|
||||
|
Loading…
Reference in New Issue
Block a user