From 221dedde5dd4df086276406a9fa2da1cc23b4eb1 Mon Sep 17 00:00:00 2001 From: Joe Boccanfuso <109477394+jbocce@users.noreply.github.com> Date: Thu, 21 Sep 2023 16:45:15 -0400 Subject: [PATCH] fix(mpr): Return the original/raw hanging protocol when fetching and preserving the current active protocol. (#3670) --- .../services/HangingProtocolService/HangingProtocolService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts b/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts index 06e2e2c6743..b6f4bc3b69f 100644 --- a/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts +++ b/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts @@ -178,6 +178,7 @@ export default class HangingProtocolService extends PubSubService { */ public getActiveProtocol(): { protocol: HangingProtocol.Protocol; + _originalProtocol: HangingProtocol.Protocol; stage: HangingProtocol.ProtocolStage; stageIndex: number; activeStudy?: StudyMetadata; @@ -187,6 +188,7 @@ export default class HangingProtocolService extends PubSubService { } { return { protocol: this.protocol, + _originalProtocol: this._originalProtocol, stage: this.protocol?.stages?.[this.stageIndex], stageIndex: this.stageIndex, activeStudy: this.activeStudy,