1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

fix eslint error

This commit is contained in:
ido 2017-01-01 16:56:20 +02:00
parent d853510890
commit b125af0440

View File

@ -427,7 +427,7 @@ function convertHtmlToReact(node, context) {
if (node.name === virtualNode) { //eslint-disable-line wix-editor/prefer-ternary
data.body = `[${_.compact(children).join(',')}]`;
} else {
data.body = _.template( getTagTemplateString(!hasNonSimpleChildren(node), reactSupport.shouldUseCreateElement(context)))(data);
data.body = _.template(getTagTemplateString(!hasNonSimpleChildren(node), reactSupport.shouldUseCreateElement(context)))(data);
}
if (node.attribs[scopeAttr]) {