Skip to content

Commit

Permalink
Fix: Remove duplicates from available tags (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Oct 2, 2023
1 parent bf12ef0 commit 98489c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/services/cached-fediseer-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ export class CachedFediseerApiService {
return [];
}

return response.successResponse!.instances.flatMap(instance => instance.tags);
return response.successResponse!.instances.flatMap(instance => instance.tags)
.filter((value, index, array) => array.indexOf(value) === index);
}),
tap (result => {
item.value = result;
Expand Down

0 comments on commit 98489c6

Please sign in to comment.