correct type inspectionPlans request

This commit is contained in:
Julian Krauser 2025-07-11 09:42:07 +02:00
parent adfe64d1f2
commit d96c73d5b1
11 changed files with 64 additions and 52 deletions

View file

@ -1,8 +1,8 @@
import { useRespiratoryGearStore } from "@/stores/admin/unit/respiratoryGear/respiratoryGear";
export async function setRespiratoryGearId(to: any, from: any, next: any) {
const RespiratoryGearStore = useRespiratoryGearStore();
RespiratoryGearStore.activeRespiratoryGear = to.params?.respiratoryGearId ?? null;
const respiratoryGearStore = useRespiratoryGearStore();
respiratoryGearStore.activeRespiratoryGear = to.params?.respiratoryGearId ?? null;
//useXYStore().$reset();
@ -10,9 +10,9 @@ export async function setRespiratoryGearId(to: any, from: any, next: any) {
}
export async function resetRespiratoryGearStores(to: any, from: any, next: any) {
const RespiratoryGearStore = useRespiratoryGearStore();
RespiratoryGearStore.activeRespiratoryGear = null;
RespiratoryGearStore.activeRespiratoryGearObj = null;
const respiratoryGearStore = useRespiratoryGearStore();
respiratoryGearStore.activeRespiratoryGear = null;
respiratoryGearStore.activeRespiratoryGearObj = null;
//useXYStore().$reset();