Переглянути джерело

fix: the plugin order is not the same as passed to api in DSL (#20515)

tags/1.4.2
Joel 5 місяці тому
джерело
коміт
e01d975b80
Аккаунт користувача з таким Email не знайдено

+ 6
- 1
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) => {

Завантаження…
Відмінити
Зберегти