diff --git a/src/components/map/MapEditor.js b/src/components/map/MapEditor.js
index e9d66da..1040468 100644
--- a/src/components/map/MapEditor.js
+++ b/src/components/map/MapEditor.js
@@ -99,6 +99,8 @@ function MapEditor({ map, onSettingsChange }) {
map.grid.inset.bottomRight.x !== defaultInset.bottomRight.x ||
map.grid.inset.bottomRight.y !== defaultInset.bottomRight.y;
+ const gridValid = map.grid.size.x !== 0 && map.grid.size.y !== 0;
+
const layout = useResponsiveLayout();
return (
@@ -131,7 +133,7 @@ function MapEditor({ map, onSettingsChange }) {
>
- {showGridControls && (
+ {showGridControls && gridValid && (
<>
@@ -140,7 +142,7 @@ function MapEditor({ map, onSettingsChange }) {
- {gridChanged && (
+ {gridChanged && gridValid && (