diff --git a/src/pages/Shelving/Card/ShelvingForm.vue b/src/pages/Shelving/Card/ShelvingForm.vue index 238879bd4..abba2a580 100644 --- a/src/pages/Shelving/Card/ShelvingForm.vue +++ b/src/pages/Shelving/Card/ShelvingForm.vue @@ -11,8 +11,8 @@ import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; const { t } = useI18n(); const route = useRoute(); const router = useRouter(); -const shelvingId = route.params?.id || null; -const isNew = Boolean(!shelvingId); +const shelvingId = ref(route.params?.id || null); +const isNew = Boolean(!shelvingId.value); const defaultInitialData = { parkingFk: null, priority: null, @@ -75,7 +75,7 @@ const onSave = (shelving, newShelving) => { auto-load />