RyanWAnderson
TTyphonJS
•Created by RyanWAnderson on 5/2/2023 in #typhonjs-runtime
Actor update error, TRL/Svelte Token interaction?
Ran into a bug I think, not sure if this is with Foundry or TRL. Related to the duplicate actor sheet issue Geoidesic ran into a few months back. Same issue, I'm getting duplicate character sheets when I try to run .
I traced the error back, looks like it's coming from making a call on line 565 in Foundry client/data/documents/token.js. I think this call to render is unnecessary for TRL and is causing SvelteApplication.js to throw a cannot read properties of null error on line 876 at , _element[0] is undefined in this case.
Looks like isn't respecting the context property, so passing render: false doesn't fix the issue. Not sure if that's intended behavior or not.
Right now I'm looking into extending TokenDocument and just removing that line from the override as a workaround, but that's territory that I haven't really been involved in up to this point so I'm not 100% sure how to go about it. Any help would be greatly appreciated. :)
You can check out my code here:
https://github.com/Lekyaira/itoa/tree/19-re-format-side-bar
The offending call starts here on line 19:
https://github.com/Lekyaira/itoa/blob/19-re-format-side-bar/src/sheets/actor/Sidebar.svelte
45 replies