fix: various content tab hosting bugs (#5662)

* fix: qa

* fix: lint
This commit is contained in:
Calum H.
2026-03-25 17:58:13 +00:00
committed by GitHub
parent 4b4282cfbf
commit 81f19eeb8d
3 changed files with 14 additions and 7 deletions

View File

@@ -115,6 +115,7 @@ const contentQuery = useQuery({
queryFn: () =>
client.archon.content_v1.getAddons(serverId, worldId.value!, { from_modpack: false }),
enabled: computed(() => worldId.value !== null),
staleTime: 0,
})
const modpackProjectId = computed(() => contentQuery.data.value?.modpack?.spec.project_id ?? null)
@@ -483,7 +484,7 @@ function addonToContentItem(addon: Archon.Content.v1.Addon): ContentItem {
link: `/${addon.owner.type}/${addon.owner.id}`,
}
: undefined,
id: addon.id,
id: addon.id ?? addon.filename,
enabled: !addon.disabled,
file_name: addon.filename,
project_type: addon.kind,