From 1ebb5ead8a924f9744c16525f127e6cf2fd791e8 Mon Sep 17 00:00:00 2001 From: Daven Quinn Date: Sun, 9 Jun 2024 13:48:31 -0500 Subject: [PATCH] Fixed paleogeography on empty hash --- src/pages/dev/paleo/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/dev/paleo/state.ts b/src/pages/dev/paleo/state.ts index 8cf79c69..37957d6a 100644 --- a/src/pages/dev/paleo/state.ts +++ b/src/pages/dev/paleo/state.ts @@ -64,7 +64,7 @@ async function transformAction( case "initialize": const hashData = getHashString(window.location.hash); - const { model, age, ...rest } = hashData; + const { model, age, ...rest } = hashData ?? {}; const mapPosition = getMapPositionForHash( rest, defaultState.mapPosition.camera