fix: Execute HP onProtocolEnter callback after HPservice.run( (#4589)
This commit is contained in:
parent
98f4ac2e75
commit
8e2c607904
@ -406,15 +406,16 @@ export default class HangingProtocolService extends PubSubService {
|
|||||||
if (protocolId && typeof protocolId === 'string') {
|
if (protocolId && typeof protocolId === 'string') {
|
||||||
const protocol = this.getProtocolById(protocolId);
|
const protocol = this.getProtocolById(protocolId);
|
||||||
this._setProtocol(protocol, options);
|
this._setProtocol(protocol, options);
|
||||||
return;
|
}else {
|
||||||
|
const matchedProtocol = this.protocolEngine.run({
|
||||||
|
studies: this.studies,
|
||||||
|
activeStudy,
|
||||||
|
displaySets,
|
||||||
|
});
|
||||||
|
this._setProtocol(matchedProtocol);
|
||||||
}
|
}
|
||||||
|
|
||||||
const matchedProtocol = this.protocolEngine.run({
|
this._commandsManager.run(this.protocol?.callbacks?.onProtocolEnter);
|
||||||
studies: this.studies,
|
|
||||||
activeStudy,
|
|
||||||
displaySets,
|
|
||||||
});
|
|
||||||
this._setProtocol(matchedProtocol);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user