Skip to content

Commit

Permalink
115046: Fixed url parameters not being filtered out of the url before…
Browse files Browse the repository at this point in the history
… hasChanges$ & isReinstatable$ is calculated
  • Loading branch information
alexandrevryghem committed May 17, 2024
1 parent f65b964 commit 9053489
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,9 @@ export class AbstractItemUpdateComponent extends AbstractTrackableComponent impl
}

this.discardTimeOut = environment.item.edit.undoTimeout;
this.url = this.router.url;
this.url = this.router.url.split('?')[0];
this.hasChanges$ = this.hasChanges();
this.isReinstatable$ = this.isReinstatable();
if (this.url.indexOf('?') > 0) {
this.url = this.url.substr(0, this.url.indexOf('?'));
}
this.hasChanges().pipe(first()).subscribe((hasChanges) => {
if (!hasChanges) {
this.initializeOriginalFields();
Expand Down

0 comments on commit 9053489

Please sign in to comment.