mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-02 00:47:48 -07:00
Webatrice: card import wizard (#4397)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user