fix: parser multiple backend pramas on paste

This commit is contained in:
jialin
2026-03-17 16:35:55 +08:00
committed by jialin
parent 9aae2c7f50
commit 0ca055b8e8
6 changed files with 121 additions and 18 deletions
+5
View File
@@ -43,6 +43,11 @@ const BackendFields: React.FC = () => {
useCompareEnvs();
const handleBackendVersionOnChange = (value: any, option: any) => {
// const oldEnvs = _.get(initialValues, 'env') || {};
// const newEnvs = option.data?.env || {};
// handleCompareEnvs(oldEnvs, newEnvs);
if (Object.keys(option.data?.env || {}).length > 0) {
form.setFieldValue('env', { ...(option?.data?.env || {}) });
}