瀏覽代碼

Fix: missing default value of type array object in conversation variable modal (#7309)

tags/0.7.1
KVOJJJin 1 年之前
父節點
當前提交
d07b2b9915
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 7 行新增1 行删除
  1. 7
    1
      web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx

+ 7
- 1
web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx 查看文件

@@ -236,8 +236,14 @@ const ChatVariableModal = ({
setType(chatVar.value_type)
setValue(chatVar.value)
setDes(chatVar.description)
setEditInJSON(false)
setObjectValue(getObjectValue())
if (chatVar.value_type === ChatVarType.ArrayObject) {
setEditorContent(JSON.stringify(chatVar.value))
setEditInJSON(true)
}
else {
setEditInJSON(false)
}
}
}, [chatVar, getObjectValue])


Loading…
取消
儲存