From 8347c165b465bf6edccfa43115f1fd2764d4acf4 Mon Sep 17 00:00:00 2001 From: Harris Tzovanakis Date: Mon, 18 Nov 2024 13:41:36 +0100 Subject: [PATCH] editor: add support of uploading files from holdingpen * ref: cern-sis/issues-inspire/609 --- record-editor/src/app/core/services/global-app-state.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/record-editor/src/app/core/services/global-app-state.service.ts b/record-editor/src/app/core/services/global-app-state.service.ts index 8d8ba97add..59d117d2b3 100644 --- a/record-editor/src/app/core/services/global-app-state.service.ts +++ b/record-editor/src/app/core/services/global-app-state.service.ts @@ -31,7 +31,7 @@ export class GlobalAppStateService { readonly jsonBeingEdited$ = new ReplaySubject(1); readonly pidValueBeingEdited$ = this.jsonBeingEdited$ - .map(json => json['control_number'] || json['metadata']['control_number']) + .map(json => json['control_number'] || json['metadata']['control_number'] || json['id']) .distinctUntilChanged(); readonly pidTypeBeingEdited$ = this.jsonBeingEdited$ .map(json => {