mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
1 parent
29f54358d6
commit
640ca8c430
1 file changed
+3
-1
@@ -46,7 +46,9 @@ export const SpoolCreate: React.FC<IResourceComponentsProps & CreateOrCloneProps
|
||||
formProps.initialValues.used_weight = 0;
|
||||
|
||||
// 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
|
||||
|
||||
Reference in new issue
Block a user