Footer don't keep room state

This commit is contained in:
Mo Bitar
2018-07-05 21:10:30 -05:00
parent 0a85469b2f
commit 7b1a868676
3 changed files with 10 additions and 10 deletions

View File

@@ -136,8 +136,7 @@ angular.module('app')
this.rooms = [];
modelManager.addItemSyncObserver("room-bar", "SN|Component", (allItems, validItems, deletedItems, source) => {
var incomingRooms = allItems.filter((candidate) => {return candidate.area == "rooms"});
this.rooms = _.uniq(this.rooms.concat(incomingRooms)).filter((candidate) => {return !candidate.deleted});
this.rooms = modelManager.components.filter((candidate) => {return candidate.area == "rooms" && !candidate.deleted});
});
componentManager.registerHandler({identifier: "roomBar", areas: ["rooms", "modal"], activationHandler: (component) => {