Handle undefined variable and error when you pass a variable to a query

Here is something that worked for me:

query1.trigger({additionalScope: {dynamicParameters: someValue}});

In the query, use this syntax:

{{ typeof dynamicParameters === 'undefined' ? undefined : dynamicParameters}}

And no more linting errors!

2 Likes