Skip to content

Commit

Permalink
fix: ChipsFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Nov 16, 2023
1 parent ba7f153 commit d20ebde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/webapp/src/components/filter/ChipsFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ const props = defineProps<{
const emit = defineEmits<(event: 'update:selected', payload: Array<number | string>) => void>();
const filter = (payload: Array<number>) => {
const ids: Array<number | string> = props.tags.filter((_, index) => payload.includes(index)).map((tag) => tag.id);
const filter = (payload: unknown) => {
const ids: Array<number | string> = props.tags
.filter((_, index) => (payload as Array<number>).includes(index))
.map((tag) => tag.id);
emit('update:selected', ids);
};
</script>
Expand Down

0 comments on commit d20ebde

Please sign in to comment.