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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(web): fix the issue where the detail drawer content does not te after editing custom tools (#19460)
HyaCinth692f922fa405
diff --git a/web/app/components/tools/provider-list.tsx b/web/app/components/tools/provider-list.tsxindex d1144d7e69e..b1da6d56110 100644--- a/web/app/components/tools/provider-list.tsx+++ b/web/app/components/tools/provider-list.tsx@@ -53,7 +53,10 @@ const ProviderList = () => {})}, [activeTab, tagFilterValue, keywords, collectionList])- const [currentProvider, setCurrentProvider] = useState<Collection | undefined>()+ const [currentProviderId, setCurrentProviderId] = useState<string | undefined>()+ const currentProvider = useMemo<Collection | undefined>(() => {+ return filteredCollectionList.find(collection => collection.id === currentProviderId)+ }, [currentProviderId, filteredCollectionList])const { data: pluginList } = useInstalledPluginList()const invalidateInstalledPluginList = useInvalidateInstalledPluginList()const currentPluginDetail = useMemo(() => {@@ -70,14 +73,14 @@ const ProviderList = () => {><div className={cn('sticky top-0 z-20 flex flex-wrap items-center justify-between gap-y-2 bg-background-body px-12 pb-2 pt-4 leading-[56px]',- currentProvider && 'pr-6',+ currentProviderId && 'pr-6',)}><TabSliderNewvalue={activeTab}onChange={(state) => {setActiveTab(state)if (state !== activeTab)- setCurrentProvider(undefined)+ setCurrentProviderId(undefined)}}options={options}/>@@ -102,12 +105,12 @@ const ProviderList = () => {{filteredCollectionList.map(collection => (<divkey={collection.id}- onClick={() => setCurrentProvider(collection)}+ onClick={() => setCurrentProviderId(collection.id)}><CardclassName={cn('cursor-pointer border-[1.5px] border-transparent',- currentProvider?.id === collection.id && 'border-components-option-card-option-selected-border',+ currentProviderId === collection.id && 'border-components-option-card-option-selected-border',)}hideCornerMarkpayload={{@@ -146,14 +149,14 @@ const ProviderList = () => {{currentProvider && !currentProvider.plugin_id && (<ProviderDetailcollection={currentProvider}- onHide={() => setCurrentProvider(undefined)}+ onHide={() => setCurrentProviderId(undefined)}onRefreshData={refetch}/>)}<PluginDetailPaneldetail={currentPluginDetail}onUpdate={() => invalidateInstalledPluginList()}- onHide={() => setCurrentProvider(undefined)}+ onHide={() => setCurrentProviderId(undefined)}/></>)