Skip to content

Commit

Permalink
fix: Fails to display any layouts in the layout selector if first lay…
Browse files Browse the repository at this point in the history
…out has multiple stages
  • Loading branch information
wayfarer3130 committed Apr 22, 2024
1 parent 65d419d commit b412aa8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b412aa8

Please sign in to comment.