Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(web): surface the validation error when a metadata value save is blocked (#18418)

chanxc05fe37563ec
diff --git a/web/src/pages/dataset/components/metedata/hooks/use-manage-values-modal.ts b/web/src/pages/dataset/components/metedata/hooks/use-manage-values-modal.ts
index 4f532195f6..758ca85b8d 100644
--- a/web/src/pages/dataset/components/metedata/hooks/use-manage-values-modal.ts
+++ b/web/src/pages/dataset/components/metedata/hooks/use-manage-values-modal.ts
@@ -6,6 +6,7 @@ import {
metadataValueTypeEnum,
} from '../constant';
import { IManageValuesProps, IMetaDataTableData } from '../interface';
+import message from '@/components/ui/message';
export const useManageValues = (props: IManageValuesProps) => {
const {
@@ -115,6 +116,7 @@ export const useManageValues = (props: IManageValuesProps) => {
const handleSave = useCallback(() => {
if (type === MetadataType.Setting && valueError.field) {
+ message.error(valueError.field);
return;
}
if (isAddValueMode) {