1
0

Handle project type on per version basis for multi-type projects (#4945)

* infer project type by draft version loader

* fix detecting modpack project type when editing

* fix no loaders check

* pnpm run fix
This commit is contained in:
Truman Gao
2025-12-21 13:13:41 -08:00
committed by GitHub
parent cace1a54cd
commit 53ec2c5306
4 changed files with 114 additions and 91 deletions

View File

@@ -22,7 +22,7 @@ const modal = useTemplateRef<ComponentExposed<typeof MultiStageModal>>('modal')
const ctx = createManageVersionContext(modal)
provideManageVersionContext(ctx)
const { newDraftVersion, setProjectType } = ctx
const { newDraftVersion } = ctx
const { projectV2 } = injectProjectPageContext()
const { addNotification } = injectNotificationManager()
@@ -62,7 +62,6 @@ function openCreateVersionModal(
stageId: string | null = null,
) {
newDraftVersion(projectV2.value.id, version)
setProjectType(projectV2.value)
modal.value?.setStage(stageId ?? 0)
modal.value?.show()
}