We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7c9058 + 9053489 commit 14dbcedCopy full SHA for 14dbced
1 file changed
src/app/item-page/edit-item-page/abstract-item-update/abstract-item-update.component.ts
@@ -85,12 +85,9 @@ export class AbstractItemUpdateComponent extends AbstractTrackableComponent impl
85
}
86
87
this.discardTimeOut = environment.item.edit.undoTimeout;
88
- this.url = this.router.url;
+ this.url = this.router.url.split('?')[0];
89
this.hasChanges$ = this.hasChanges();
90
this.isReinstatable$ = this.isReinstatable();
91
- if (this.url.indexOf('?') > 0) {
92
- this.url = this.url.substr(0, this.url.indexOf('?'));
93
- }
94
this.hasChanges().pipe(first()).subscribe((hasChanges) => {
95
if (!hasChanges) {
96
this.initializeOriginalFields();
0 commit comments