fix: replicas trigger compatibility

This commit is contained in:
jialin
2025-10-29 17:24:26 +08:00
parent 801c88a3e2
commit c077db1129
3 changed files with 23 additions and 14 deletions
+6 -2
View File
@@ -8,7 +8,8 @@ import React, { forwardRef, useImperativeHandle, useMemo } from 'react';
import styled from 'styled-components';
import {
deployFormKeyMap,
excludeFields,
DO_NOT_NOTIFY_RECREATE,
DO_NOT_TRIGGER_CHECK_COMPATIBILITY,
modelSourceMap,
ScheduleValueMap
} from '../config';
@@ -249,7 +250,10 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
const handleOnValuesChange = async (changedValues: any, allValues: any) => {
const fieldName = getFieldPaths(changedValues);
if (excludeFields.includes(fieldName)) {
if (
DO_NOT_TRIGGER_CHECK_COMPATIBILITY.includes(fieldName) ||
(DO_NOT_NOTIFY_RECREATE.includes(fieldName) && action === PageAction.EDIT)
) {
return;
}
onValuesChange?.(changedValues, allValues);