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: fix plugin miss version and checksum (#36083)

wangxiaolei7e56a244a86a
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index 46277d33497..849595d3c7b 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -4699,9 +4699,6 @@
},
"ts/no-explicit-any": {
"count": 3
- },
- "ts/no-non-null-asserted-optional-chain": {
- "count": 1
}
},
"web/service/use-tools.ts": {
diff --git a/web/service/use-plugins.ts b/web/service/use-plugins.ts
index 6004ecde56d..36397c7f648 100644
--- a/web/service/use-plugins.ts
+++ b/web/service/use-plugins.ts
@@ -336,7 +336,7 @@ export const useInstallOrUpdate = ({
}
if (item.type === 'marketplace') {
const data = item as GitHubItemAndMarketPlaceDependency
- uniqueIdentifier = data.value.marketplace_plugin_unique_identifier! || plugin[i]?.plugin_id!
+ uniqueIdentifier = data.value.marketplace_plugin_unique_identifier! || (plugin[i]?.latest_package_identifier ?? '') || (plugin[i]?.plugin_id ?? '')
if (uniqueIdentifier === installedPayload?.uniqueIdentifier) {
return {
status: TaskStatus.success,