mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix frontend workflow migration when node is missing version
This should default to "1.0.0" to match the behaviour of the backend.
This commit is contained in:
parent
bb986b97f3
commit
442ac2b828
@ -64,7 +64,10 @@ const migrateV1toV2 = (workflowToMigrate: WorkflowV1): WorkflowV2 => {
|
|||||||
const nodePack = invocationTemplate
|
const nodePack = invocationTemplate
|
||||||
? invocationTemplate.nodePack
|
? invocationTemplate.nodePack
|
||||||
: t('common.unknown');
|
: t('common.unknown');
|
||||||
|
|
||||||
(node.data as unknown as InvocationNodeData).nodePack = nodePack;
|
(node.data as unknown as InvocationNodeData).nodePack = nodePack;
|
||||||
|
// Fallback to 1.0.0 if not specified - this matches the behavior of the backend
|
||||||
|
node.data.version ||= '1.0.0';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Bump version
|
// Bump version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user