Sfoglia il codice sorgente

fix import DSL install Github plugin failed (#16362)

tags/1.1.2
Junjie.M 7 mesi fa
parent
commit
e324e59930
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      web/service/use-plugins.ts

+ 2
- 1
web/service/use-plugins.ts Vedi File

@@ -187,7 +187,8 @@ export const useInstallOrUpdate = ({
if (item.type === 'github') {
const data = item as GitHubItemAndMarketPlaceDependency
// 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', {
body: {
repo: data.value.repo!,

Loading…
Annulla
Salva