Преглед на файлове

fix import DSL install Github plugin failed (#16362)

Junjie.M преди 1 месец
родител
ревизия
e324e59930
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      web/service/use-plugins.ts

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

@@ -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!,