0
0
Fork 0

refs #6772 feat: refresh shelving.basic-data

This commit is contained in:
Javier Segarra 2024-02-21 14:55:52 +01:00
parent 2e86cdfe52
commit 1fecb6b954
1 changed files with 3 additions and 3 deletions

View File

@ -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
/>
<FormModel
:url="isNew ? null : `Shelvings/${shelvingId}`"
:url="isNew ? null : `Shelvings/${route.params?.id}`"
:url-create="isNew ? 'Shelvings' : null"
:observe-form-changes="!isNew"
:filter="shelvingFilter"