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