fix(mpr): Return the original/raw hanging protocol when fetching and preserving the current active protocol. (#3670)
This commit is contained in:
parent
807bd663b3
commit
221dedde5d
@ -178,6 +178,7 @@ export default class HangingProtocolService extends PubSubService {
|
|||||||
*/
|
*/
|
||||||
public getActiveProtocol(): {
|
public getActiveProtocol(): {
|
||||||
protocol: HangingProtocol.Protocol;
|
protocol: HangingProtocol.Protocol;
|
||||||
|
_originalProtocol: HangingProtocol.Protocol;
|
||||||
stage: HangingProtocol.ProtocolStage;
|
stage: HangingProtocol.ProtocolStage;
|
||||||
stageIndex: number;
|
stageIndex: number;
|
||||||
activeStudy?: StudyMetadata;
|
activeStudy?: StudyMetadata;
|
||||||
@ -187,6 +188,7 @@ export default class HangingProtocolService extends PubSubService {
|
|||||||
} {
|
} {
|
||||||
return {
|
return {
|
||||||
protocol: this.protocol,
|
protocol: this.protocol,
|
||||||
|
_originalProtocol: this._originalProtocol,
|
||||||
stage: this.protocol?.stages?.[this.stageIndex],
|
stage: this.protocol?.stages?.[this.stageIndex],
|
||||||
stageIndex: this.stageIndex,
|
stageIndex: this.stageIndex,
|
||||||
activeStudy: this.activeStudy,
|
activeStudy: this.activeStudy,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user