Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix import DSL install Github plugin failed (#16362)

Junjie.Me324e5993055
diff --git a/web/service/use-plugins.ts b/web/service/use-plugins.ts
index dc877969ba2..9b5bab587e8 100644
--- a/web/service/use-plugins.ts
+++ b/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!,