mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 10:15:55 +08:00
Fix: missing default value of type array object in conversation variable modal (#7309)
This commit is contained in:
parent
04131f86df
commit
d07b2b9915
@ -236,8 +236,14 @@ const ChatVariableModal = ({
|
|||||||
setType(chatVar.value_type)
|
setType(chatVar.value_type)
|
||||||
setValue(chatVar.value)
|
setValue(chatVar.value)
|
||||||
setDes(chatVar.description)
|
setDes(chatVar.description)
|
||||||
setEditInJSON(false)
|
|
||||||
setObjectValue(getObjectValue())
|
setObjectValue(getObjectValue())
|
||||||
|
if (chatVar.value_type === ChatVarType.ArrayObject) {
|
||||||
|
setEditorContent(JSON.stringify(chatVar.value))
|
||||||
|
setEditInJSON(true)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setEditInJSON(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, [chatVar, getObjectValue])
|
}, [chatVar, getObjectValue])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user