fix: Safely handle missing active viewport (#5448)

This commit is contained in:
Sofien-Sellami 2025-10-06 13:56:31 +01:00 committed by GitHub
parent 60633a8f3f
commit 792db26ff1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -291,6 +291,11 @@ class StudyPrefetcherService extends PubSubService {
}
const activeViewport = viewports.get(activeViewportId);
if (!activeViewport) {
return;
}
const displaySetUpdated = this._setActiveDisplaySetsUIDs(activeViewport.displaySetInstanceUIDs);
if (forceRestart || displaySetUpdated) {