fix(hp): Fails to display any layouts in the layout selector if first layout has multiple stages (#4058)

This commit is contained in:
Bill Wallace authored and GitHub committed 2024-04-22 09:53:10 -04:00
1 parent 65d419dd52
commit f0ed3fd7b9
2 files changed
+24 -18

No files matched your search

@@ -1107,6 +1107,7 @@ export default class HangingProtocolService extends PubSubService {
if (this.protocol.id !== protocolId) {
console.warn('setting protocol');
this.protocol = this.getProtocolById(protocolId);
this.stageIndex = 0;
}
const protocol = this.protocol;
const stage = protocol.stages[stageIdx];