feat(node-editor): fit view on init

This commit is contained in:
blessedcoolant 2023-07-11 18:22:50 +12:00
parent bbdb26511a
commit 5bf144e6bc

View File

@ -72,6 +72,7 @@ export const Flow = () => {
const onInit: OnInit = useCallback(
(v) => {
dispatch(setEditorInstance(v));
if (v) v.fitView();
},
[dispatch]
);