Skip to content

Commit 14dbced

Browse files
Merge branch 'w2p-113560_edit-item-add-relationships-one-by-one_contribute-7.6' into w2p-113560_edit-item-add-relationships-one-by-one_contribute-7_x
2 parents f7c9058 + 9053489 commit 14dbced

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/app/item-page/edit-item-page/abstract-item-update/abstract-item-update.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,9 @@ export class AbstractItemUpdateComponent extends AbstractTrackableComponent impl
8585
}
8686

8787
this.discardTimeOut = environment.item.edit.undoTimeout;
88-
this.url = this.router.url;
88+
this.url = this.router.url.split('?')[0];
8989
this.hasChanges$ = this.hasChanges();
9090
this.isReinstatable$ = this.isReinstatable();
91-
if (this.url.indexOf('?') > 0) {
92-
this.url = this.url.substr(0, this.url.indexOf('?'));
93-
}
9491
this.hasChanges().pipe(first()).subscribe((hasChanges) => {
9592
if (!hasChanges) {
9693
this.initializeOriginalFields();

0 commit comments

Comments
 (0)