Fix build

This commit is contained in:
James Lyne 2021-06-13 01:09:33 +01:00
parent bd8fe7ba5e
commit ae9358bdbe

View File

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