fix(ui): tsc issues

This commit is contained in:
psychedelicious
2025-02-06 12:31:08 +11:00
parent 2c0b474f55
commit 7a9340b850
3 changed files with 9 additions and 5 deletions

View File

@@ -429,7 +429,7 @@ export const nodesSlice = createSlice({
if (!field) {
return;
}
field.description = val;
field.description = val || '';
},
notesNodeValueChanged: (state, action: PayloadAction<{ nodeId: string; value: string }>) => {
const { nodeId, value } = action.payload;

View File

@@ -38,6 +38,7 @@ export const buildFieldInputInstance = (id: string, template: FieldInputTemplate
const fieldInstance: FieldInputInstance = {
name: template.name,
label: '',
description: '',
value: template.default ?? get(FIELD_VALUE_FALLBACK_MAP, template.type.name),
};

View File

@@ -33,6 +33,7 @@ describe('validateWorkflow', () => {
model: {
name: 'model',
label: '',
description: '',
value: {
key: '2c85d9e7-12cd-4e59-bb94-96d4502e99d4',
hash: 'random:aadc6641321ba17a324788ef1691f3584b382f0e7fa4a90be169f2a4ac77435c',
@@ -62,17 +63,19 @@ describe('validateWorkflow', () => {
board: {
name: 'board',
label: '',
description: '',
value: { board_id: '99a08f09-8232-4b74-94a2-f8e136d62f8c' },
},
metadata: { name: 'metadata', label: 'Metadata' },
metadata: { name: 'metadata', label: 'Metadata', description: '' },
image: {
name: 'image',
label: '',
description: '',
value: { image_name: '96c124c8-f62f-4d4f-9788-72218469f298.png' },
},
width: { name: 'width', label: '', value: 512 },
height: { name: 'height', label: '', value: 512 },
resample_mode: { name: 'resample_mode', label: '', value: 'bicubic' },
width: { name: 'width', label: '', value: 512, description: '' },
height: { name: 'height', label: '', value: 512, description: '' },
resample_mode: { name: 'resample_mode', label: '', value: 'bicubic', description: '' },
},
},
position: { x: -46.428806920557236, y: -479.6641524207518 },