fix: Safely handle missing active viewport (#5448)
This commit is contained in:
parent
60633a8f3f
commit
792db26ff1
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user