Skip to content

Commit

Permalink
fix teleport
Browse files Browse the repository at this point in the history
  • Loading branch information
ToBinio committed Apr 28, 2024
1 parent 22d1605 commit d24b414
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions theseus_gui/src/pages/instance/Mods.vue
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
:instance="instance"
:versions="props.versions"
/>
<Teleport to=".side-cards">
<Teleport v-if="mounted" to=".side-cards">
<Card class="filter-panel">
<CategoryFilter
:facets="facets"
Expand Down Expand Up @@ -401,7 +401,7 @@ import {
Pagination,
DropdownSelect,
} from 'omorphia'
import { computed, onUnmounted, ref, watch } from 'vue'
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
import { useRouter } from 'vue-router'
import {
add_project_from_path,
Expand Down Expand Up @@ -461,6 +461,14 @@ const canUpdatePack = computed(() => {
})
const exportModal = ref(null)
// used to make sure to only render teleport (category selector)
// when the page is fully loading so the sidebar definitely exists
let mounted = ref(false)
onMounted(() => {
mounted.value = true
})
const initProjects = (initInstance) => {
projects.value = []
if (!initInstance || !initInstance.projects) return
Expand Down

0 comments on commit d24b414

Please sign in to comment.