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:
parent
d853510890
commit
b125af0440
@ -427,7 +427,7 @@ function convertHtmlToReact(node, context) {
|
|||||||
if (node.name === virtualNode) { //eslint-disable-line wix-editor/prefer-ternary
|
if (node.name === virtualNode) { //eslint-disable-line wix-editor/prefer-ternary
|
||||||
data.body = `[${_.compact(children).join(',')}]`;
|
data.body = `[${_.compact(children).join(',')}]`;
|
||||||
} else {
|
} 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]) {
|
if (node.attribs[scopeAttr]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user