From 68908d3d77b5224d992d0c541a918ae09e72c4c9 Mon Sep 17 00:00:00 2001 From: George Kalampokis Date: Wed, 12 Feb 2020 09:48:46 +0200 Subject: [PATCH] Minor bugfix --- .../src/app/ui/dmp/editor/dmp-editor.component.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts index cc8d64c10..d513643c8 100644 --- a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts +++ b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts @@ -543,13 +543,7 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC private pumpLock() { this.lock.touchedAt = new Date(); - this.lockService.createOrUpdate(this.lock).pipe(takeUntil(this._destroyed)).subscribe( async result => { - if (!isNullOrUndefined(result)) { - this.lock.id = Guid.parse(result); - } else { - this.location.back(); - } - }); + this.lockService.createOrUpdate(this.lock).pipe(takeUntil(this._destroyed)).subscribe( async result => this.lock.id = Guid.parse(result)); } // advancedClicked() {