diff --git a/src/modules/07_insignia/store.ts b/src/modules/07_insignia/store.ts index c6a1e4ff3..4d54ce759 100644 --- a/src/modules/07_insignia/store.ts +++ b/src/modules/07_insignia/store.ts @@ -125,8 +125,9 @@ export const useInsigniaDataStore = defineStore("insignia", () => { */ function fetchOption(op: any) { const aId = agency.value ?? "00000000-0000-0000-0000-000000000000"; + const hasID = op.find((e: any) => e.id === agency.value); - if (aId !== "00000000-0000-0000-0000-000000000000") { + if (aId !== "00000000-0000-0000-0000-000000000000" && hasID) { typeOc.value = agency.value; optionsTypeOc.value = op; } else {