fix(dicomWebClient): use public getter for activeDataSourceName instead of accessing private property (#4973)
This commit is contained in:
1 parent
f02ce22ae3
commit
5688a2b4b8
2 files changed
+24
-18
No files matched your search
@@ -11,7 +11,7 @@ import { StaticWadoClient } from '@ohif/extension-default';
|
||||
*/
|
||||
export default function getDicomWebClient({ extensionManager, servicesManager }: withAppTypes) {
|
||||
const dataSourceConfig = window.config.dataSources.find(
|
||||
ds => ds.sourceName === extensionManager.activeDataSource
|
||||
ds => ds.sourceName === extensionManager.activeDataSourceName
|
||||
);
|
||||
const { userAuthenticationService } = servicesManager.services;
|
||||
|
||||
@@ -28,7 +28,7 @@ export default function getDicomWebClient({ extensionManager, servicesManager }:
|
||||
const client = new StaticWadoClient(wadoConfig);
|
||||
client.wadoURL = wadoConfig.url;
|
||||
|
||||
if (extensionManager.activeDataSource === 'dicomlocal') {
|
||||
if (extensionManager.activeDataSourceName === 'dicomlocal') {
|
||||
/**
|
||||
* For local data source, override the retrieveInstanceFrames() method of the
|
||||
* dicomweb-client to retrieve image data from memory cached metadata.
|
||||
|
||||
Reference in new issue
Block a user