diff --git a/frontend/src/components/visual-editor/v2/Diagrams.tsx b/frontend/src/components/visual-editor/v2/Diagrams.tsx index 0e9aac3..b12e210 100644 --- a/frontend/src/components/visual-editor/v2/Diagrams.tsx +++ b/frontend/src/components/visual-editor/v2/Diagrams.tsx @@ -48,7 +48,6 @@ import { IBlock } from "@/types/block.types"; import { ICategory } from "@/types/category.types"; import { BlockPorts } from "@/types/visual-editor.types"; - import BlockDialog from "../BlockDialog"; import { ZOOM_LEVEL } from "../constants"; import { useVisualEditor } from "../hooks/useVisualEditor"; @@ -273,7 +272,13 @@ const Diagrams = () => { zoomUpdated: debouncedZoomEvent, offsetUpdated: debouncedOffsetEvent, }); - }, [JSON.stringify(blocks)]); + }, [ + JSON.stringify( + blocks.map((b) => { + return { ...b, position: undefined, updatedAt: undefined }; + }), + ), + ]); const handleDeleteButton = () => { const selectedEntities = engine?.getModel().getSelectedEntities();