diff --git a/src/pages/Route/Card/RouteForm.vue b/src/pages/Route/Card/RouteForm.vue index 5029ce4c0..8d32f6773 100644 --- a/src/pages/Route/Card/RouteForm.vue +++ b/src/pages/Route/Card/RouteForm.vue @@ -18,8 +18,8 @@ const { t } = useI18n(); const route = useRoute(); const router = useRouter(); const stateStore = useStateStore(); -const shelvingId = route.params?.id || null; -const isNew = Boolean(!shelvingId); +const shelvingId = ref(route.params?.id || null); +const isNew = Boolean(!shelvingId.value); const defaultInitialData = { agencyModeFk: null, created: null, @@ -111,7 +111,7 @@ const onSave = (data, response) => { auto-load /> { @on-fetch="(data) => (supplierList = data)" />