bug fix, add maps to package
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user