Skip to content

Commit

Permalink
Merge branch '335-milestones' of https://github.com/MadLamprey/WATcher
Browse files Browse the repository at this point in the history
…into 335-milestones
  • Loading branch information
Misra Aditya committed Apr 1, 2024
2 parents 26b65fa + f5b9fc0 commit 91b960a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/core/services/filters.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ export class FiltersService {
return;
}

// No preset view and no other filters in params, use default view
if (!presetView && Object.keys(nextFilter).every((filterName) => queryParams.get(filterName) === null)) {
this.updatePresetView('currentlyActive');
return;
}

for (const filterName of Object.keys(nextFilter)) {
const stringifiedFilterData = queryParams.get(filterName);
if (!stringifiedFilterData) {
Expand Down

0 comments on commit 91b960a

Please sign in to comment.