Restore support for array of styles on Svg root.

This commit is contained in:
Mikael Sand
2018-10-19 18:26:41 +03:00
parent b6d17ff1df
commit b9debca598
+1 -1
View File
@@ -71,7 +71,7 @@ class Svg extends Shape {
children,
...props
} = this.props;
const stylesAndProps = { ...style, ...props };
const stylesAndProps = { ...(style && style.length ? Object.assign({}, ...style) : style), ...props };
const { color, width, height } = stylesAndProps;
let dimensions;