bug fix, add maps to package

This commit is contained in:
or-else
2018-11-13 12:32:46 +03:00
parent 9e073356b2
commit 769c25170f
6 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ function draftyFormatter(style, data, values, key) {
attr.onClick = this.handleFormButtonClick;
let inner = React.Children.map(values, (child) => {
return typeof child == 'string' ? child : undefined;
}
});
if (!inner || inner.length == 0) {
inner = [attr.name]
}