[REF] cleanup: prettier

This commit is contained in:
Géry Debongnie
2021-06-10 10:22:30 +02:00
parent d67d295eaa
commit 1a6b26c8c6
2 changed files with 9 additions and 5 deletions
+3 -1
View File
@@ -281,7 +281,9 @@ QWeb.addDirective({
// Step 4: add the appropriate function call to current component
// ------------------------------------------------
const parentComponent = ctx.rootContext.shouldDefineParent ? `parent` : `utils.getComponent(context)`;
const parentComponent = ctx.rootContext.shouldDefineParent
? `parent`
: `utils.getComponent(context)`;
const key = ctx.generateTemplateKey();
const parentNode = ctx.parentNode ? `c${ctx.parentNode}` : "result";
const extra = `Object.assign({}, extra, {parentNode: ${parentNode}, parent: ${parentComponent}, key: ${key}})`;