mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +00:00
Merge pull request #464 from Hexastack/454-bug-visual-editor-default-flow-navigation
fix(frontend): handle visual editor default flow navigation
This commit is contained in:
commit
971060d76f
@ -189,7 +189,8 @@ const Diagrams = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setSelectedCategoryId(flowId || "");
|
if (flowId) setSelectedCategoryId(flowId);
|
||||||
|
else if (categories?.length) setSelectedCategoryId(categories[0].id);
|
||||||
|
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [flowId]);
|
}, [flowId]);
|
||||||
|
Loading…
Reference in New Issue
Block a user