Merge branch "main" into feat/plugins

This commit is contained in:
Yi
2024-12-05 15:08:09 +08:00
71 changed files with 1619 additions and 1068 deletions

View File

@ -97,8 +97,9 @@ const ChatVariableModal = ({
return objectPlaceholder
}, [type])
const getObjectValue = useCallback(() => {
if (!chatVar)
if (!chatVar || Object.keys(chatVar.value).length === 0)
return [DEFAULT_OBJECT_VALUE]
return Object.keys(chatVar.value).map((key) => {
return {
key,