basic drop to set displaySet
This commit is contained in:
1 parent
6baeaa9619
commit
6bbe206a45
4 files changed
+57
-47
No files matched your search
@@ -178,7 +178,7 @@ export default class ExtensionManager {
|
||||
|
||||
try {
|
||||
const extensionModule = getModuleFn({
|
||||
getDataSources: this.getDataSources,
|
||||
getDataSources: this.getDataSources, // Why pass this in if we're passing in `extensionManager`?
|
||||
servicesManager: this._servicesManager,
|
||||
commandsManager: this._commandsManager,
|
||||
appConfig: this._appConfig,
|
||||
|
||||
@@ -46,12 +46,13 @@ export default class DisplaySetService {
|
||||
);
|
||||
};
|
||||
|
||||
getDisplaySetByUID = displaySetInstanceUid => {
|
||||
// TODO: Why is this searching active, not just displaySets?
|
||||
return displaySetCache.find(
|
||||
/**
|
||||
* @param {string} displaySetInstanceUID
|
||||
* @returns {object} displaySet
|
||||
*/
|
||||
getDisplaySetByUID = displaySetInstanceUid => displaySetCache.find(
|
||||
displaySet => displaySet.displaySetInstanceUID === displaySetInstanceUid
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Broadcasts displaySetService changes.
|
||||
|
||||
Reference in new issue
Block a user