Skip to content

Commit

Permalink
use addBlock instead of addLine
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Mar 27, 2018
1 parent d3451a5 commit 6ff60db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/nodes/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export default class Component extends Node {
);
}

block.builders.mount.addLine(deindent`
block.builders.mount.addBlock(deindent`
if (${name}) {
${name}._mount(${parentNode || '#target'}, ${parentNode ? 'null' : 'anchor'});
${ref && `#component.refs.${ref.name} = ${name};`}
Expand Down

0 comments on commit 6ff60db

Please sign in to comment.