mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-02 06:35:09 +08:00
fix: the plugin order is not the same as passed to api in DSL (#20515)
This commit is contained in:
parent
92528360f9
commit
e01d975b80
@ -83,7 +83,12 @@ const InstallByDSLList: FC<Props> = ({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isFetchingMarketplaceDataById && infoGetById?.data.plugins) {
|
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 failedIndex: number[] = []
|
||||||
const nextPlugins = produce(pluginsRef.current, (draft) => {
|
const nextPlugins = produce(pluginsRef.current, (draft) => {
|
||||||
marketPlaceInDSLIndex.forEach((index, i) => {
|
marketPlaceInDSLIndex.forEach((index, i) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user