Skip to content

Commit

Permalink
fix(mods): mods should load tags correctly from all categories
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Mar 22, 2023
1 parent c656eb1 commit b07dd7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/modals/modio-browse/modio-browse.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export class ModioBrowseComponent implements OnInit, OnDestroy {

this.modsService.getBaseGameInfo().subscribe((data: any) => {
this.totalMods = data.stats.mods_count_total;
this.tags = [...new Set(...data.tag_options.map((options: any) => options.tags))].sort() as string[];
const allOptions = data.tag_options.map((options: any) => options.tags).flat();
this.tags = [...new Set(allOptions)].sort() as string[];
});

this.search();
Expand Down

0 comments on commit b07dd7e

Please sign in to comment.