fix: pass sorted display sets to hanging protocol for deterministic viewport order The `applyHangingProtocol` function already sorts display sets by modality priority and series number into `sortedDisplaySets`, but the unsorted `displaySets` array was being passed to `hangingProtocolService.run()`. This caused non-deterministic viewport ordering across page loads because `displaySetService.getActiveDisplaySets()` returns display sets in creation order, which depends on asynchronous network responses. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| __tests__ | ||
| components | ||
| hooks | ||
| routes | ||
| state | ||
| utils | ||
| App.css | ||
| App.tsx | ||
| appInit.js | ||
| index.js | ||
| loadDynamicConfig.js | ||
| sanity.test.js | ||
| service-worker.js | ||