mirror of https://github.com/langgenius/dify.git
fix: letter list not right
This commit is contained in:
parent
b1831bc582
commit
2a29dd3534
|
|
@ -69,13 +69,14 @@ const Blocks = ({
|
|||
|
||||
const listViewToolData = useMemo(() => {
|
||||
const result: ToolWithProvider[] = []
|
||||
Object.keys(withLetterAndGroupViewToolsData).forEach((letter) => {
|
||||
letters.forEach((letter) => {
|
||||
Object.keys(withLetterAndGroupViewToolsData[letter]).forEach((groupName) => {
|
||||
result.push(...withLetterAndGroupViewToolsData[letter][groupName])
|
||||
})
|
||||
})
|
||||
|
||||
return result
|
||||
}, [withLetterAndGroupViewToolsData])
|
||||
}, [withLetterAndGroupViewToolsData, letters])
|
||||
|
||||
const toolRefs = useRef({})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue