mirror of https://github.com/langgenius/dify.git
chore: tool selelct use the same tools data
This commit is contained in:
parent
0383fce821
commit
55ad1fe1f0
|
|
@ -1,6 +1,6 @@
|
|||
import type { FC } from 'react'
|
||||
import { memo } from 'react'
|
||||
import { useStore } from '../store'
|
||||
import { useAllBuiltInTools, useAllCustomTools, useAllWorkflowTools } from '@/service/use-tools'
|
||||
import type { BlockEnum } from '../types'
|
||||
import { useTabs } from './hooks'
|
||||
import type { ToolDefaultValue } from './types'
|
||||
|
|
@ -28,9 +28,9 @@ const Tabs: FC<TabsProps> = ({
|
|||
noBlocks,
|
||||
}) => {
|
||||
const tabs = useTabs()
|
||||
const buildInTools = useStore(s => s.buildInTools)
|
||||
const customTools = useStore(s => s.customTools)
|
||||
const workflowTools = useStore(s => s.workflowTools)
|
||||
const { data: buildInTools } = useAllBuiltInTools()
|
||||
const { data: customTools } = useAllCustomTools()
|
||||
const { data: workflowTools } = useAllWorkflowTools()
|
||||
|
||||
return (
|
||||
<div onClick={e => e.stopPropagation()}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue