Skip to content

Commit

Permalink
fix(editor): Fix incorrect node type version selection on new canvas …
Browse files Browse the repository at this point in the history
…(no-changelog) (#10412)
  • Loading branch information
alexgrozav authored Aug 15, 2024
1 parent d98e29e commit 6bb5710
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor-ui/src/composables/useCanvasOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
}

const nodesWithTypeVersion = nodes.map((node) => {
const typeVersion = resolveNodeVersion(requireNodeTypeDescription(node.type));
const typeVersion =
node.typeVersion ?? resolveNodeVersion(requireNodeTypeDescription(node.type));
return {
...node,
typeVersion,
Expand Down Expand Up @@ -478,6 +479,7 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
);
} catch (error) {
toast.showError(error, i18n.baseText('error'));
console.error(error);
continue;
}

Expand Down

0 comments on commit 6bb5710

Please sign in to comment.