Skip to content

Commit

Permalink
Fixed paleogeography on empty hash
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Jun 9, 2024
1 parent 0bf5ed3 commit 1ebb5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/dev/paleo/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ebb5ea

Please sign in to comment.