Fix fog undo disabling

This commit is contained in:
Mitchell McCaffrey 2020-05-31 13:56:33 +10:00
parent 337a769fe4
commit 7dac49f690

View File

@ -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 (