fix: css style string is parsed to char array accidently

This commit is contained in:
Yun Feng 2022-06-21 01:28:33 +10:00
parent b4c6082b6a
commit 6f1f5eb3ec

View File

@ -152,7 +152,7 @@ export const StyleTraitForm: React.FC<Props> = props => {
};
const changeCssProperties = (newCss: PartialCSSProperties) => {
const newCssProperties = Object.assign({}, style, newCss);
const newCssProperties = Object.assign({}, cssProperties, newCss);
const newStyles = produce(styles, draft => {
draft[i].cssProperties = newCssProperties;
});