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

This commit is contained in:
chanx
2026-08-18 16:08:48 +08:00
committed by GitHub
parent cd1bb572b6
commit c05fe37563

View File

@@ -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) {