Webatrice: card import wizard (#4397)

This commit is contained in:
Jeremy Letto
2021-10-14 21:42:35 -04:00
committed by GitHub
parent dde0f568d9
commit 36e5a399d5
41 changed files with 1479 additions and 35 deletions
@@ -31,8 +31,12 @@ export default class RoomService {
const game = gameList[0];
if (!game.gameType) {
const { gametypeMap } = RoomsSelectors.getRoom(store.getState(), roomId);
NormalizeService.normalizeGameObject(game, gametypeMap);
const room = RoomsSelectors.getRoom(store.getState(), roomId);
if (room) {
const { gametypeMap } = room;
NormalizeService.normalizeGameObject(game, gametypeMap);
}
}
RoomsDispatch.updateGames(roomId, gameList);