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 8d8ba97ad..59d117d2b 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 => {