From fb536f4cd8f7485d6e7f8d5e11e9e824b33c533d Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 11 Sep 2020 17:30:44 +1000 Subject: [PATCH] Fix file not found error when switching between maps with custom tokens --- src/components/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/Map.js b/src/components/map/Map.js index f3683b3..e1c8f73 100644 --- a/src/components/map/Map.js +++ b/src/components/map/Map.js @@ -237,7 +237,7 @@ function Map({ } } - const mapTokens = mapState && ( + const mapTokens = map && mapState && ( {Object.values(mapState.tokens) .sort((a, b) => sortMapTokenStates(a, b, draggingTokenOptions))