From 5789f35e87c5e3d9110803a3500371291f7ca09a Mon Sep 17 00:00:00 2001 From: Vanderhaegen Cedrik Date: Tue, 10 Dec 2024 18:09:02 +0100 Subject: [PATCH] kleine refactor --- src/components/smart/FilterAOEActor.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/smart/FilterAOEActor.vue b/src/components/smart/FilterAOEActor.vue index 470642c..49506f5 100644 --- a/src/components/smart/FilterAOEActor.vue +++ b/src/components/smart/FilterAOEActor.vue @@ -40,14 +40,12 @@ const updateValue = (value: IActor) => emit('update:value', value); const performAutocompleteSearch = async (searchTerm: string): Promise => { try { actoren.value = await actorService.getAOEActoren(searchTerm); - const autocompleteData: IAutocompleteOption[] = actoren.value.map((actor) => { + return actoren.value.map((actor) => { return { title: actor.omschrijving, value: actor.uri, }; }); - - return autocompleteData; } catch (error) { console.error('Error fetching autocomplete data:', error); return Promise.resolve([]);