From 01b62adba95bb60a55a826126e173ccd2f1c7949 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 26 Sep 2024 14:30:19 +0200 Subject: [PATCH] fix: refs #7524 dynamic fetch --- .../Travel/Card/TravelThermographsForm.vue | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/pages/Travel/Card/TravelThermographsForm.vue b/src/pages/Travel/Card/TravelThermographsForm.vue index 1d3410903..3c7c98d4d 100644 --- a/src/pages/Travel/Card/TravelThermographsForm.vue +++ b/src/pages/Travel/Card/TravelThermographsForm.vue @@ -30,18 +30,9 @@ const router = useRouter(); const state = useState(); const { notify } = useNotify(); -const thermographFilter = { - fields: ['id', 'thermographFk'], - where: { - or: [{ travelFk: null }, { travelFk: route.params.id }], - }, - order: 'thermographFk ASC', -}; - const fetchTravelThermographsRef = ref(null); const allowedContentTypes = ref(''); const user = state.getUser(); -const thermographsOptions = ref([]); const dmsTypesOptions = ref([]); const companiesOptions = ref([]); const warehousesOptions = ref([]); @@ -172,13 +163,6 @@ const onThermographCreated = async (data) => { auto-load url="Temperatures" /> - {