fix : page de modification reception qui crash en prod

This commit is contained in:
tristan
2026-02-26 09:46:34 +01:00
parent 393c420983
commit 5967665e9f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
</template>
<script setup lang="ts">
import { AddressPayload } from "~/services/address"
import type { AddressPayload } from "~/services/address"
const route = useRoute()
+2 -2
View File
@@ -327,7 +327,7 @@ const filteredVehicles = computed<VehicleData[]>(() => {
watch(
() => idReception,
async (id) => {
if (id === null) {
if (!Number.isFinite(id) || id <= 0) {
return
}
isLoading.value = true
@@ -500,7 +500,7 @@ async function loadTypes() {
try {
receptionTypes.value = await getReceptionTypeList()
} finally {
isLoadingSuppliers.value = false
isLoadingTypes.value = false
}
}