Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[31698] Check if querySpace is initialized already to avoid reloading

Oliver Güntherf4386f030854
diff --git a/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts b/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts
index 415e25071d3..c37d2b064be 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts
+++ b/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts
@@ -99,8 +99,10 @@ export class WorkPackagesListComponent extends WorkPackagesViewBase implements O
this.hasQueryProps = !!this.$state.params.query_props;
- // Load query initially
- this.loadCurrentQuery();
+ // Load query initially unless it already was loaded
+ if (!this.querySpace.initialized.hasValue()) {
+ this.loadCurrentQuery();
+ }
// Load query on URL transitions
this.updateQueryOnParamsChanges();