Skip to content

Commit

Permalink
fix(mpr): Return the original/raw hanging protocol when fetching and …
Browse files Browse the repository at this point in the history
…preserving the current active protocol.
  • Loading branch information
Joe Boccanfuso committed Sep 21, 2023
1 parent 807bd66 commit 823e572
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 823e572

Please sign in to comment.