fix : page de modification reception qui crash en prod
All checks were successful
Auto Tag Develop / tag (push) Successful in 6s

This commit is contained in:
2026-02-26 09:46:34 +01:00
parent 393c420983
commit 5967665e9f
2 changed files with 3 additions and 3 deletions

View File

@@ -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()

View File

@@ -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
} }
} }