Merge branch 'Donkie:master' into master

This commit is contained in:
CooperGerman
2024-04-15 10:29:20 +02:00
committed by GitHub

View File

@@ -46,7 +46,9 @@ export const SpoolCreate: React.FC<IResourceComponentsProps & CreateOrCloneProps
formProps.initialValues.used_weight = 0; formProps.initialValues.used_weight = 0;
// Fix the filament_id // Fix the filament_id
formProps.initialValues.filament_id = formProps.initialValues.filament.id; if (formProps.initialValues.filament) {
formProps.initialValues.filament_id = formProps.initialValues.filament.id;
}
} }
// If the query variable filament_id is set, set the filament_id field to that value // If the query variable filament_id is set, set the filament_id field to that value