fix: if t-props is not defined, should fallback on {}

This commit is contained in:
Géry Debongnie
2019-03-28 17:35:08 +01:00
parent 04679a6d03
commit afc89e6f66
3 changed files with 63 additions and 1 deletions
+1 -1
View File
@@ -931,7 +931,7 @@ const widgetDirective: Directive = {
ctx.addLine(
`let w${widgetID} = ${templateID} in context.__widget__.cmap ? context.__widget__.children[context.__widget__.cmap[${templateID}]] : false;`
);
ctx.addLine(`let props${widgetID} = ${props};`);
ctx.addLine(`let props${widgetID} = ${props || "{}"};`);
ctx.addLine(`let isNew${widgetID} = !w${widgetID};`);
// check if we can reuse current rendering promise