Merged PR 1704: #4539 Fix Skip Location Change Filter

#4539 Fix Skip Location Change Filter
This commit is contained in:
Nino Righi
2023-12-27 14:39:15 +00:00
committed by Margaretha Lucha
parent 2ff033ea55
commit 0973b01bf0

View File

@@ -120,7 +120,7 @@ export abstract class PickupShelfBaseComponent implements OnInit {
// Only Update QueryParams if the user is already on the details, edit or history page
const view: string = this.activatedRoute.snapshot.data.view;
if (['details', 'edit', 'history'].includes(view)) {
if (['filter', 'details', 'edit', 'history'].includes(view)) {
await this.router.navigate([], { queryParams: { ...queryParams, ...filterQueryParams }, skipLocationChange: true });
return;
}