pull/8442/head
Nguyen Tran 3 years ago
parent 1945d506f4
commit c7102b3073

@ -1138,15 +1138,15 @@ export default class Component {
} }
} }
if (inserts.length > 0) { if (inserts.length > 0) {
parent[key].splice(index + 1, 0, ...inserts); parent[key].splice(index + 1, 0, ...inserts);
} }
if (props.length > 0) { if (props.length > 0) {
parent[key].splice(index + 1, 0, b`let { ${props} } = $$props;`); parent[key].splice(index + 1, 0, b`let { ${props} } = $$props;`);
} }
if (node.declarations.length == 0) { if (node.declarations.length == 0) {
parent[key].splice(index, 1); parent[key].splice(index, 1);
} }
return this.skip(); return this.skip();
} }

Loading…
Cancel
Save