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

This commit is contained in:
Joe Boccanfuso 2023-09-21 16:45:15 -04:00 committed by GitHub
parent 807bd663b3
commit 221dedde5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,