Skip to content

Commit 2c8aaf8

Browse files
fix: fill from locale error if undefined (#6897)
1 parent 9d3ee62 commit 2c8aaf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/decap-cms-core/src/components/Editor/EditorControlPane/EditorControlPane.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default class ControlPane extends React.Component {
144144
locale: sourceLocale,
145145
isTranslatable: sourceLocale !== defaultLocale,
146146
});
147-
this.props.onChange(field, copyValue, undefined, i18n);
147+
if (copyValue) this.props.onChange(field, copyValue, undefined, i18n);
148148
}
149149
});
150150
};

0 commit comments

Comments
 (0)