From 28b01087f4b579a8b367d3e036517451a8d89a44 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 22 Dec 2020 01:39:19 +0000 Subject: [PATCH] Fix typo in default map handling. Fixes #1 --- src/store/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/actions.ts b/src/store/actions.ts index d439def..5d867f9 100644 --- a/src/store/actions.ts +++ b/src/store/actions.ts @@ -112,7 +112,7 @@ export const actions: ActionTree & Actions = { // Use first map, if any, if neither of the above exist if(!mapName) { - mapName = world.maps.size ? world.maps.entries().next().value.name : undefined; + mapName = world.maps.size ? world.maps.entries().next().value[1].name : undefined; } }