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: the plugin order is not the same as passed to api in DSL (#20515)

Joele01d975b8011
diff --git a/web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx b/web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx
index 40be3e65e63..5f60483d3cf 100644
--- a/web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx
+++ b/web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx
@@ -83,7 +83,12 @@ const InstallByDSLList: FC<Props> = ({
useEffect(() => {
if (!isFetchingMarketplaceDataById && infoGetById?.data.plugins) {
- const payloads = infoGetById?.data.plugins
+ const sortedList = allPlugins.filter(d => d.type === 'marketplace').map((d) => {
+ const p = d as GitHubItemAndMarketPlaceDependency
+ const id = p.value.marketplace_plugin_unique_identifier?.split(':')[0]
+ return infoGetById.data.plugins.find(item => item.plugin_id === id)!
+ })
+ const payloads = sortedList
const failedIndex: number[] = []
const nextPlugins = produce(pluginsRef.current, (draft) => {
marketPlaceInDSLIndex.forEach((index, i) => {