Skip to content

Commit

Permalink
Merge pull request #38 from myheritage/develop
Browse files Browse the repository at this point in the history
fixing a bug with array of react elements
  • Loading branch information
NoamELB authored Oct 9, 2017
2 parents 8ed1cb9 + be85d8b commit 74409fd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export default class ParamSelectorJSX extends React.Component {

if (START_WITH_TAG_REGEX.test(value)) {
try {
compiledValue = compiler(value);
// as a hack to no mess with keys - wrapping by a div
compiledValue = compiler(`<div>${value}</div>`);
compiledValue = compiledValue.props.children;
} catch(e) {
error = e;
}
Expand Down

0 comments on commit 74409fd

Please sign in to comment.