From b412aa84b1b14c6716f5d36154c614efda1599eb Mon Sep 17 00:00:00 2001 From: Bill Wallace Date: Mon, 22 Apr 2024 09:21:06 -0400 Subject: [PATCH] fix: Fails to display any layouts in the layout selector if first layout has multiple stages --- .../services/HangingProtocolService/HangingProtocolService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts b/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts index 317d7ae412a..8f3821e9652 100644 --- a/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts +++ b/platform/core/src/services/HangingProtocolService/HangingProtocolService.ts @@ -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];