fix import DSL install Github plugin failed (#16362)

This commit is contained in:
Junjie.M
2025-03-20 21:37:45 +08:00
committed by GitHub
parent 727caccfc9
commit e324e59930

View File

@@ -187,7 +187,8 @@ export const useInstallOrUpdate = ({
if (item.type === 'github') { if (item.type === 'github') {
const data = item as GitHubItemAndMarketPlaceDependency const data = item as GitHubItemAndMarketPlaceDependency
// From local bundle don't have data.value.github_plugin_unique_identifier // From local bundle don't have data.value.github_plugin_unique_identifier
if (!data.value.github_plugin_unique_identifier) { uniqueIdentifier = data.value.github_plugin_unique_identifier!
if (!uniqueIdentifier) {
const { unique_identifier } = await post<uploadGitHubResponse>('/workspaces/current/plugin/upload/github', { const { unique_identifier } = await post<uploadGitHubResponse>('/workspaces/current/plugin/upload/github', {
body: { body: {
repo: data.value.repo!, repo: data.value.repo!,