Skip to content

Commit

Permalink
fix: fill from locale error if undefined (#6897)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjagodic committed Aug 30, 2023
1 parent 9d3ee62 commit 2c8aaf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default class ControlPane extends React.Component {
locale: sourceLocale,
isTranslatable: sourceLocale !== defaultLocale,
});
this.props.onChange(field, copyValue, undefined, i18n);
if (copyValue) this.props.onChange(field, copyValue, undefined, i18n);
}
});
};
Expand Down

0 comments on commit 2c8aaf8

Please sign in to comment.