Fix file not found error when switching between maps with custom tokens

This commit is contained in:
Mitchell McCaffrey 2020-09-11 17:30:44 +10:00
parent 22bf53141d
commit fb536f4cd8

View File

@ -237,7 +237,7 @@ function Map({
}
}
const mapTokens = mapState && (
const mapTokens = map && mapState && (
<Group>
{Object.values(mapState.tokens)
.sort((a, b) => sortMapTokenStates(a, b, draggingTokenOptions))