mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
fix: empty object (conversation variable) editable (#11352)
This commit is contained in:
@@ -97,8 +97,9 @@ const ChatVariableModal = ({
|
|||||||
return objectPlaceholder
|
return objectPlaceholder
|
||||||
}, [type])
|
}, [type])
|
||||||
const getObjectValue = useCallback(() => {
|
const getObjectValue = useCallback(() => {
|
||||||
if (!chatVar)
|
if (!chatVar || Object.keys(chatVar.value).length === 0)
|
||||||
return [DEFAULT_OBJECT_VALUE]
|
return [DEFAULT_OBJECT_VALUE]
|
||||||
|
|
||||||
return Object.keys(chatVar.value).map((key) => {
|
return Object.keys(chatVar.value).map((key) => {
|
||||||
return {
|
return {
|
||||||
key,
|
key,
|
||||||
|
|||||||
Reference in New Issue
Block a user