diff --git a/src/components/panels/map-panel.vue b/src/components/panels/map-panel.vue index 7c007e49..d0d4ebd8 100644 --- a/src/components/panels/map-panel.vue +++ b/src/components/panels/map-panel.vue @@ -14,14 +14,22 @@
+
+
-
@@ -92,10 +100,13 @@ onMounted(() => { const init = async () => { // Find the correct map component based on whether there's a title component. - if (props.config.title) { - mapComponent.value = props.config.teleportGrid ? el.value.children[1].children[1] : el.value.children[1]; + const mapIndex = !!props.config.title ? 1 : 0; + if (props.config.teleportGrid === 'left') { + mapComponent.value = el.value.children[mapIndex].children[1]; + } else if (props.config.teleportGrid === 'right') { + mapComponent.value = el.value.children[mapIndex].children[0]; } else { - mapComponent.value = props.config.teleportGrid ? el.value.children[0].children[1] : el.value.children[0]; + mapComponent.value = el.value.children[mapIndex]; } // If the configFileStructure object is provided (editor preview mode), grab the config from there.