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

Remove unnecessary variable + improve comments

Aleix Suau313d06789042
diff --git a/frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts b/frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts
index d8d8dbfde57..fe352a6c0d4 100644
--- a/frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts
+++ b/frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts
@@ -96,15 +96,15 @@ export class BimViewToggleDropdownDirective extends OpContextMenuTrigger {
switch (key) {
// This project controls the view representation of the data through
// the wpDisplayRepresentation service that modifies the QuerySpace
- // to inform the component about which display mode is active
- // (this.querySpace.query.live$).
+ // to inform the rest of the app about which display mode is currently
+ // active (this.querySpace.query.live$).
// Under the hood it is done by modifying the params of actual route.
- // Because of that, it is no possible to call this.state.go and
+ // Because of that, it is not possible to call this.state.go and
// this.wpDisplayRepresentation.setDisplayRepresentation at the same
// time, it raises a route error (The transition has been superseded by
- // a different transition...). Is this why we are passing a cards params
- // to inform the view about the display representation mode it has to
- // show (cards or list).
+ // a different transition...). To avoid this error, we are passing
+ // a cards params to inform the view about the display representation mode
+ // it has to show (cards or list).
case bimListViewIdentifier:
this.state.go('bim.partitioned.list', {cards: true});
break;
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service.ts b/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service.ts
index 2dabbcad489..76069d51c9a 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service.ts
+++ b/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service.ts
@@ -37,8 +37,6 @@ import {Injectable} from "@angular/core";
@Injectable()
export abstract class WorkPackageViewBaseService<T> {
- id = Math.random();
-
/** Internal state to push non-persisted updates */
protected updatesState = input<T>();