Add coma for the end component

This commit is contained in:
Oleksii Dykan
2018-06-15 11:57:14 +01:00
parent 01add80075
commit 34e8d71528

View File

@@ -139,7 +139,7 @@ function getLayoutCode(
); );
lines.push(indent + `}]${isRoot ? ';' : ','}`); lines.push(indent + `}]${isRoot ? ';' : ','}`);
} else { } else {
lines[lines.length - 1] += ']'; lines[lines.length - 1] += '],';
CKFlexboxComponentChild.forEach(key => { CKFlexboxComponentChild.forEach(key => {
let line = renderKey(node, key, indent); let line = renderKey(node, key, indent);
if (line) { if (line) {