Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(web): fix error notify when tagInput component is not required (#… (#24774)
zyilevenbcac43c812fb
diff --git a/web/app/components/base/tag-input/index.tsx b/web/app/components/base/tag-input/index.tsxindex eeed13c5673..30a2db0e63d 100644--- a/web/app/components/base/tag-input/index.tsx+++ b/web/app/components/base/tag-input/index.tsx@@ -14,6 +14,7 @@ type TagInputProps = {customizedConfirmKey?: 'Enter' | 'Tab'isInWorkflow?: booleanplaceholder?: string+ required?: boolean}const TagInput: FC<TagInputProps> = ({@@ -24,6 +25,7 @@ const TagInput: FC<TagInputProps> = ({customizedConfirmKey = 'Enter',isInWorkflow,placeholder,+ required = false,}) => {const { t } = useTranslation()const { notify } = useToastContext()@@ -42,7 +44,8 @@ const TagInput: FC<TagInputProps> = ({const handleNewTag = useCallback((value: string) => {const valueTrimmed = value.trim()if (!valueTrimmed) {- notify({ type: 'error', message: t('datasetDocuments.segment.keywordEmpty') })+ if (required)+ notify({ type: 'error', message: t('datasetDocuments.segment.keywordEmpty') })return}@@ -60,7 +63,7 @@ const TagInput: FC<TagInputProps> = ({setTimeout(() => {setValue('')})- }, [items, onChange, notify, t])+ }, [items, onChange, notify, t, required])const handleKeyDown = (e: KeyboardEvent) => {if (isSpecialMode && e.key === 'Enter')diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsxindex 4bb3cbf7d50..719817152d9 100644--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx@@ -236,6 +236,7 @@ const ParameterItem: FC<ParameterItemProps> = ({onChange={handleTagChange}customizedConfirmKey='Tab'isInWorkflow={isInWorkflow}+ required={parameterRule.required}/></div>)