We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98ef6e5 commit 60a348aCopy full SHA for 60a348a
ui/src/components/ai-chat/component/user-form/index.vue
@@ -303,7 +303,9 @@ const checkInputParam = () => {
303
for (let i = 0; i < inputFieldList.value.length; i++) {
304
if (
305
inputFieldList.value[i].required &&
306
- !form_data_context.value[inputFieldList.value[i].field]
+ (form_data_context.value[inputFieldList.value[i].field] === null ||
307
+ form_data_context.value[inputFieldList.value[i].field] === undefined ||
308
+ form_data_context.value[inputFieldList.value[i].field] === '')
309
) {
310
MsgWarning(t('chat.tip.requiredMessage'))
311
return false
0 commit comments