From 2537e58ff3839f7ab901ca6c31bd0de7a617892e Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 20 Sep 2024 09:56:04 +0200 Subject: [PATCH] fix: refs #7524 dynamic fetch --- .../Travel/Card/TravelThermographsForm.vue | 35 +++++-------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/src/pages/Travel/Card/TravelThermographsForm.vue b/src/pages/Travel/Card/TravelThermographsForm.vue index 7f40873b10..c61e8c46f7 100644 --- a/src/pages/Travel/Card/TravelThermographsForm.vue +++ b/src/pages/Travel/Card/TravelThermographsForm.vue @@ -28,18 +28,8 @@ const route = useRoute(); const router = useRouter(); const state = useState(); const { notify } = useNotify(); - -const thermographFilter = { - fields: ['thermographFk'], - where: { - travelFk: null, - }, - 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([]); @@ -166,26 +156,13 @@ const updateThermograph = async () => { console.error('Error creating thermograph'); } }; - -const onThermographCreated = async (data) => { - await fetchTravelThermographsRef.value.fetch(); - thermographForm.thermographId = data.thermographId; -}; - - es: Select files: Selecciona ficheros