fix: Hanging protocol state fixes (#3242)

* fix: Some residual issues with hanging protocol after state sync

fix: Some issues introduced by the state syncing changes

* fix: PR fixes, mostly code cleanup

* Improve a race condition in an automated test

* Remove obsolete code

* PR fixes
This commit is contained in:
Bill Wallace authored and GitHub committed 2023-03-20 15:11:21 -04:00
1 parent 544bf55a4f
commit ee4e8a4105
19 files changed
+268 -171

No files matched your search

+2 -2
View File
@@ -153,8 +153,8 @@ const commandsModule = ({ servicesManager, commandsManager }) => {
const restoreProtocol = !!viewportGridStore[storedHanging];
if (
protocolId === hpInfo.hangingProtocolId &&
useStageIdx === hpInfo.stageIdx &&
protocolId === hpInfo.protocolId &&
useStageIdx === hpInfo.stageIndex &&
!activeStudyUID
) {
// Clear the HP setting to reset them
@@ -58,7 +58,7 @@ const reuseCachedLayout = (
}
if (displaySetOptions[i]?.id) {
displaySetSelectorMap[
`${activeStudyUID}: ${displaySetOptions[i].id}: ${displaySetOptions[i]
`${activeStudyUID}:${displaySetOptions[i].id}:${displaySetOptions[i]
.matchedDisplaySetsIndex || 0}`
] = displaySetUID;
}