From 6bb57108a164affa900a733cd40eb976d1e154c9 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Thu, 15 Aug 2024 11:23:22 +0300 Subject: [PATCH] fix(editor): Fix incorrect node type version selection on new canvas (no-changelog) (#10412) --- packages/editor-ui/src/composables/useCanvasOperations.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/composables/useCanvasOperations.ts b/packages/editor-ui/src/composables/useCanvasOperations.ts index 2dd8a1f404177..11e40f39b356e 100644 --- a/packages/editor-ui/src/composables/useCanvasOperations.ts +++ b/packages/editor-ui/src/composables/useCanvasOperations.ts @@ -444,7 +444,8 @@ export function useCanvasOperations({ router }: { router: ReturnType { - const typeVersion = resolveNodeVersion(requireNodeTypeDescription(node.type)); + const typeVersion = + node.typeVersion ?? resolveNodeVersion(requireNodeTypeDescription(node.type)); return { ...node, typeVersion, @@ -478,6 +479,7 @@ export function useCanvasOperations({ router }: { router: ReturnType