From 7dac49f690202479210f2b1abc1ef365c1036715 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sun, 31 May 2020 13:56:33 +1000 Subject: [PATCH] Fix fog undo disabling --- 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 71b0a1f..9be30fb 100644 --- a/src/components/map/Map.js +++ b/src/components/map/Map.js @@ -174,7 +174,7 @@ function Map({ disabledSettings.shape.push("redo"); disabledSettings.erase.push("redo"); } - if (fogShapes.length === 0) { + if (!mapState || mapState.fogDrawActionIndex < 0) { disabledSettings.fog.push("undo"); } if (