Skip to content

Commit

Permalink
kleine refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cedrikv committed Dec 10, 2024
1 parent 9b290be commit 5789f35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/smart/FilterAOEActor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ const updateValue = (value: IActor) => emit('update:value', value);
const performAutocompleteSearch = async (searchTerm: string): Promise<IAutocompleteOption[]> => {
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([]);
Expand Down

0 comments on commit 5789f35

Please sign in to comment.