Unverified Commit 5fde711b authored by Yeuoly's avatar Yeuoly

fix: tool duplicate

parent c15dc655
......@@ -152,7 +152,7 @@ const AgentTools: FC = () => {
)
: (
<div className='hidden group-hover:flex items-center'>
{item.provider_type === CollectionType.builtIn && (
{(item.provider_type === CollectionType.builtIn || item.provider_type === CollectionType.model) && (
<TooltipPlus
popupContent={t('tools.setBuiltInTools.infoAndSetting')}
>
......
......@@ -117,7 +117,7 @@ const Tools: FC<Props> = ({
catch (e) { }
setIsDetailLoading(false)
})()
}, [currCollection?.name])
}, [currCollection?.name, currCollection?.type])
const [isShowEditCollectionToolModal, setIsShowEditCollectionToolModal] = useState(false)
const handleCreateToolCollection = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment