fix: undefined instance path by using emitted event instead when opening world folder (#3746)

* fix: undefined instance path by using emitted event instead

* fix: linting
This commit is contained in:
Magnus Jensen
2025-06-12 00:25:20 +02:00
committed by GitHub
parent 4386891716
commit 6955731def
2 changed files with 6 additions and 8 deletions

View File

@@ -86,6 +86,7 @@
world.type === 'server' ? editServerModal?.show(world) : editWorldModal?.show(world)
"
@delete="() => promptToRemoveWorld(world)"
@open-folder="(world: SingleplayerWorld) => showWorldInFolder(instance.path, world.path)"
/>
</div>
</div>
@@ -151,6 +152,7 @@ import {
hasQuickPlaySupport,
refreshWorlds,
handleDefaultProfileUpdateEvent,
showWorldInFolder,
} from '@/helpers/worlds.ts'
import AddServerModal from '@/components/ui/world/modal/AddServerModal.vue'
import EditServerModal from '@/components/ui/world/modal/EditServerModal.vue'