From 927c596b04fcacb844c759b6eb25a37570a134dc Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Wed, 4 Nov 2020 15:03:14 +1100 Subject: [PATCH] Added notes to map state reset detection --- src/components/map/MapTiles.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/map/MapTiles.js b/src/components/map/MapTiles.js index aba9e16..e88a75d 100644 --- a/src/components/map/MapTiles.js +++ b/src/components/map/MapTiles.js @@ -39,7 +39,8 @@ function MapTiles({ if ( Object.values(state.tokens).length > 0 || state.mapDrawActions.length > 0 || - state.fogDrawActions.length > 0 + state.fogDrawActions.length > 0 || + Object.values(state.notes).length > 0 ) { hasMapState = true; break;