In the refresh method, we resolve the url and just output it to the console.
This is fine if the url is an object, string or whatever, but it breaks if the value of this.url is null. The error for a null value is as follows:
Uncaught TypeError: Cannot read properties of null (reading ‘get’)
at x.refresh (<anonymous>:9:66)
at <anonymous>:1:5
The fix also replaces double quotes for undefined:
In this PR:
undefined
string.The problem is with the current method used to resolve urls in the data grid. AFAIK, in some cases url's are resolved more securely, but not all.
Minimal source code to understand the problem:
In the refresh method, we resolve the url and just output it to the console. This is fine if the url is an object, string or whatever, but it breaks if the value of this.url is null. The error for a null value is as follows:
The fix also replaces double quotes for
undefined
:becomes