Still broken, but app runs
This commit is contained in:
1 parent
aec30e0db1
commit
b65a91129e
5 files changed
+149
-112
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import pubSubServiceInterface from '../pubSubServiceInterface';
|
||||
|
||||
const EVENTS = {
|
||||
DISPLAY_SETS_ADDED: 'event::displaySetService:displaySetAdded',
|
||||
DISPLAY_SETS_ADDED: 'event::displaySetService:displaySetsAdded',
|
||||
};
|
||||
|
||||
const displaySetCache = [];
|
||||
@@ -81,11 +81,8 @@ export default class DisplaySetService {
|
||||
}
|
||||
|
||||
// If array of instances => One instance.
|
||||
|
||||
let displaySetsAdded = [];
|
||||
|
||||
debugger;
|
||||
|
||||
if (batch) {
|
||||
input.forEach(instances => {
|
||||
const displaySets = this.makeDisplaySetForInstances(instances);
|
||||
@@ -99,12 +96,12 @@ export default class DisplaySetService {
|
||||
}
|
||||
|
||||
// If array of array of instances
|
||||
|
||||
this._broadcastChange(EVENTS.DISPLAY_SETS_ADDED, displaySetsAdded);
|
||||
if (displaySetsAdded && displaySetsAdded.length) {
|
||||
this._broadcastChange(EVENTS.DISPLAY_SETS_ADDED, displaySetsAdded);
|
||||
}
|
||||
};
|
||||
|
||||
makeDisplaySetForInstances(instances) {
|
||||
debugger;
|
||||
const instance = instances[0];
|
||||
|
||||
const existingDisplaySets =
|
||||
|
||||
Reference in new issue
Block a user