From 15eecbb46358a1fb7e625dba0485a6ad34ad0d74 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 10 Feb 2022 16:28:44 +0100 Subject: [PATCH] cleanup --- src/domain/session/leftpanel/LeftPanelViewModel.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/domain/session/leftpanel/LeftPanelViewModel.js b/src/domain/session/leftpanel/LeftPanelViewModel.js index cc3a2ccb..08584d7f 100644 --- a/src/domain/session/leftpanel/LeftPanelViewModel.js +++ b/src/domain/session/leftpanel/LeftPanelViewModel.js @@ -40,7 +40,7 @@ export class LeftPanelViewModel extends ViewModel { _mapTileViewModels(roomsBeingCreated, invites, rooms) { // join is not commutative, invites will take precedence over rooms - const joined = invites.join(roomsBeingCreated, rooms).mapValues((item, emitChange) => { + const allTiles = invites.join(roomsBeingCreated, rooms).mapValues((item, emitChange) => { let vm; if (item.isBeingCreated) { vm = new RoomBeingCreatedTileViewModel(this.childOptions({roomBeingCreated: item, emitChange})); @@ -56,10 +56,7 @@ export class LeftPanelViewModel extends ViewModel { } return vm; }); - return joined; - // return new LogMap(joined, (op, key, value) => { - // console.log("room list", op, key, value); - // }); + return allTiles; } _updateCurrentVM(vm) {