Skip to content

Commit

Permalink
fix: fix incorrect node type selection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed Aug 14, 2024
1 parent bae0116 commit 7ff0d95
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 7ff0d95

Please sign in to comment.