mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-20 23:35:06 +08:00
fix(web): surface the validation error when a metadata value save is blocked (#18418)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user