From 26dfcbf82361ae8e44bc0630a81f970aa5f00128 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Fri, 10 Feb 2017 11:45:05 -0500 Subject: [PATCH] edge case where realtime server is passing empty object --- frontend/src/components/Maps/MapCard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Maps/MapCard.js b/frontend/src/components/Maps/MapCard.js index a6200549..b76bbf0b 100644 --- a/frontend/src/components/Maps/MapCard.js +++ b/frontend/src/components/Maps/MapCard.js @@ -82,7 +82,7 @@ class MapCard extends Component { render = () => { const { map, mobile, juntoState, currentUser, onRequest, onStar } = this.props - const hasMap = juntoState.liveMaps[map.id] + const hasMap = juntoState.liveMaps[map.id] && values(juntoState.liveMaps[map.id]).length const hasConversation = hasMap && find(values(hasMap), v => v === IN_CONVERSATION) const hasMapper = hasMap && !hasConversation const mapperList = hasMap && Object.keys(hasMap).map(id => juntoState.connectedPeople[id])