CarnVanBeck / vtt-resource-tracker

2 stars 1 forks source link

TypeError: Cannot read properties of null #13

Closed CarnVanBeck closed 2 years ago

CarnVanBeck commented 2 years ago

on focus out of the tracked ressource the error occures because app.object is null

irbian commented 2 years ago

related?

When I save I get this

resource-tracker.js:196 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'checked') [Detected 1 package: vtt-resource-tracker] at Function.saveFlags (resource-tracker.js:196) at HTMLButtonElement. (resource-tracker.js:172) at HTMLButtonElement.dispatch (jquery.min.js:2) at HTMLButtonElement.v.handle (jquery.min.js:2)

In the line:

                res.showName = html.find(`input[data-name="${key}_nameToggle"]`)[0].checked;

Key has "restrack_custom_0" as value, but the HTML is:

Version 9, build 269