From 53f69738a5a11c291decfcbee18bbdbdb32167f3 Mon Sep 17 00:00:00 2001 From: Kevin Martinez Date: Thu, 22 Feb 2024 21:49:07 -0300 Subject: [PATCH] Fix routes form update --- src/pages/Route/Card/RouteForm.vue | 6 +++--- src/pages/Route/Roadmap/RoadmapBasicData.vue | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) 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)" />