Fix WorldListItem check state again

This commit is contained in:
James Lyne 2021-05-28 19:13:25 +01:00
parent 63efb8c3c3
commit 3cf9a01184

View File

@ -66,7 +66,7 @@ export default defineComponent({
currentMap: {
get() {
const store = useStore();
return store.state.currentMap ? `${store.state.currentMap.world.name}_${store.state.currentMap.name}` : undefined;
return store.state.currentMap ? [store.state.currentMap.world.name, store.state.currentMap.name] : undefined;
},
set(value: string[]) {
useStore().commit(MutationTypes.SET_CURRENT_MAP, {worldName: value[0], mapName: value[1]});