mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-09 17:07:57 +08:00
Fix: Every variable in the chat settings is required. (#17727)
This commit is contained in:
@@ -33,7 +33,7 @@ export function DynamicVariableForm({
|
||||
|
||||
const add = useCallback(() => {
|
||||
append({
|
||||
key: undefined,
|
||||
key: '',
|
||||
optional: false,
|
||||
});
|
||||
}, [append]);
|
||||
|
||||
@@ -26,7 +26,7 @@ export function useChatSettingSchema() {
|
||||
parameters: z
|
||||
.array(
|
||||
z.object({
|
||||
key: z.string(),
|
||||
key: z.string().min(1, { message: t('variableKeyMessage') }),
|
||||
optional: z.boolean(),
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user