fix(mpr): Return the original/raw hanging protocol when fetching and preserving the current active protocol. (#3670)

This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2023-09-21 16:45:15 -04:00
1 parent 807bd663b3
commit 221dedde5d
1 file changed
+2
@@ -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,