mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-30 17:52:48 +00:00
fix: handle undefined chat_input_field_list in refreshChatFieldList
This commit is contained in:
parent
2f73ac535a
commit
90a9ebd477
|
|
@ -104,7 +104,7 @@ const refreshFieldList = () => {
|
|||
const refreshChatFieldList = () => {
|
||||
const chatFieldList = props.nodeModel.graphModel.nodes
|
||||
.filter((v: any) => v.id === 'base-node')
|
||||
.map((v: any) => cloneDeep(v.properties.chat_input_field_list))
|
||||
.map((v: any) => cloneDeep(v.properties.chat_input_field_list || []))
|
||||
.reduce((x: any, y: any) => [...x, ...y], [])
|
||||
.map((i: any) => ({ label: i.label, value: i.field }))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue