@@ -1286,7 +1286,7 @@ export default class TemplateProcessor {
1286
1286
const { compiledExpr__, exprTargetJsonPointer__, expr__} = metaInfo ;
1287
1287
let target ;
1288
1288
try {
1289
- target = jp . get ( output , exprTargetJsonPointer__ ) ; //an expression is always relative to a target
1289
+ target = jp . get ( output , exprTargetJsonPointer__ as JsonPointerString ) ; //an expression is always relative to a target
1290
1290
const safe = this . withErrorHandling . bind ( this ) ;
1291
1291
const jittedFunctions : { [ key : string ] : ( arg : any ) => Promise < any > } = { } ;
1292
1292
for ( const k of this . functionGenerators . keys ( ) ) {
@@ -1316,7 +1316,7 @@ export default class TemplateProcessor {
1316
1316
...{ "set" : safe ( this . generateSet ( planStep ) ) } ,
1317
1317
...jittedFunctions
1318
1318
} ;
1319
- evaluated = await compiledExpr__ . evaluate (
1319
+ evaluated = await compiledExpr__ ? .evaluate (
1320
1320
target ,
1321
1321
context
1322
1322
) ;
@@ -1466,9 +1466,11 @@ export default class TemplateProcessor {
1466
1466
//a jsonPointer like '/rxLog/-'. Which means "last element of rxLog". queueParent() allows us to
1467
1467
//pickup the /rxLog array as being an implicit dependency of its array elements. So if an element
1468
1468
//is added or removed, we will recognize anyone who depends on /rxLog as a dependent
1469
+ //@ts -ignore
1469
1470
if ( ! jp . has ( this . templateMeta , currentPtr ) ) {
1470
1471
continue ;
1471
1472
}
1473
+ //@ts -ignore
1472
1474
const metaInf = jp . get ( this . templateMeta , currentPtr ) as MetaInfo ;
1473
1475
if ( metaInf . isFunction__ ) {
1474
1476
continue ; //function never gets re-evaluated
0 commit comments