diff --git a/client/src/pages/spools/edit.tsx b/client/src/pages/spools/edit.tsx index b214b3e65..c67506ccb 100644 --- a/client/src/pages/spools/edit.tsx +++ b/client/src/pages/spools/edit.tsx @@ -131,8 +131,8 @@ export const SpoolEdit: React.FC = () => { const [usedWeight, setUsedWeight] = useState(0); useEffect(() => { - const newFilamentWeight = selectedFilament?.weight || 0; - const newSpoolWeight = selectedFilament?.spool_weight || 0; + const newFilamentWeight = getFilamentWeight(); + const newSpoolWeight = getSpoolWeight(); if (newFilamentWeight > 0) { form.setFieldValue("initial_weight", newFilamentWeight); }