mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 18:41:48 -08:00
fix(editor): Fix incorrect node type version selection on new canvas (no-changelog) (#10412)
This commit is contained in:
parent
d98e29e3d5
commit
6bb57108a1
|
@ -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,
|
||||
|
@ -478,6 +479,7 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
|
|||
);
|
||||
} catch (error) {
|
||||
toast.showError(error, i18n.baseText('error'));
|
||||
console.error(error);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue