fix(ui): do not assign empty string to version if undefined

this causes zod to fail when building workflows
This commit is contained in:
psychedelicious 2023-09-06 00:01:26 +10:00
parent 9c290f4575
commit 0a1c5bea05

View File

@ -73,7 +73,7 @@ export const parseSchema = (
const title = schema.title.replace('Invocation', ''); const title = schema.title.replace('Invocation', '');
const tags = schema.tags ?? []; const tags = schema.tags ?? [];
const description = schema.description ?? ''; const description = schema.description ?? '';
const version = schema.version ?? ''; const version = schema.version;
const inputs = reduce( const inputs = reduce(
schema.properties, schema.properties,