fix : page de modification reception qui crash en prod
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { AddressPayload } from "~/services/address"
|
import type { AddressPayload } from "~/services/address"
|
||||||
|
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ const filteredVehicles = computed<VehicleData[]>(() => {
|
|||||||
watch(
|
watch(
|
||||||
() => idReception,
|
() => idReception,
|
||||||
async (id) => {
|
async (id) => {
|
||||||
if (id === null) {
|
if (!Number.isFinite(id) || id <= 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
isLoading.value = true
|
isLoading.value = true
|
||||||
@@ -500,7 +500,7 @@ async function loadTypes() {
|
|||||||
try {
|
try {
|
||||||
receptionTypes.value = await getReceptionTypeList()
|
receptionTypes.value = await getReceptionTypeList()
|
||||||
} finally {
|
} finally {
|
||||||
isLoadingSuppliers.value = false
|
isLoadingTypes.value = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user