Skip to content

Commit

Permalink
Fixed "TypeError: Cannot convert undefined or null to object"
Browse files Browse the repository at this point in the history
LF-3223
  • Loading branch information
yuriy-sedinkin committed Jan 16, 2025
1 parent 69e6305 commit 0b18aa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fhirpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ function makeParam(ctx, parentData, type, param) {

function doInvoke(ctx, fnName, data, rawParams){
var invoc =
Object.prototype.hasOwnProperty.call(ctx.userInvocationTable, fnName)
ctx.userInvocationTable
&& Object.prototype.hasOwnProperty.call(ctx.userInvocationTable, fnName)
&& ctx.userInvocationTable?.[fnName]
|| engine.invocationTable[fnName]
|| data.length === 1 && data[0]?.invocationTable[fnName];
Expand Down

0 comments on commit 0b18aa4

Please sign in to comment.