fix: fix code

This commit is contained in:
ZhaiSoul 2026-05-12 20:39:30 +08:00
parent 893d9da3f3
commit a3b86611fb
No known key found for this signature in database

View File

@ -75,10 +75,10 @@ export function ReplaceRulesField(props: FieldProps) {
(schema as RJSFSchema).description; (schema as RJSFSchema).description;
const patternTitle = const patternTitle =
t(`${sectionPrefix}.${id}.pattern.label`) ?? t(`${sectionPrefix}.${id}.pattern.label`) ??
getPropertyTitle(itemSchema, "pattern", t); getPropertyTitle(itemSchema, "pattern");
const replacementTitle = const replacementTitle =
t(`${sectionPrefix}.${id}.replacement.label`) ?? t(`${sectionPrefix}.${id}.replacement.label`) ??
getPropertyTitle(itemSchema, "replacement", t); getPropertyTitle(itemSchema, "replacement");
const hasItems = rules.length > 0; const hasItems = rules.length > 0;
const emptyPath = useMemo(() => [] as FieldPathList, []); const emptyPath = useMemo(() => [] as FieldPathList, []);