Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Backlinks do not render in V11 #14

Open
Muwak77 opened this issue Sep 22, 2023 · 3 comments
Open

Some Backlinks do not render in V11 #14

Muwak77 opened this issue Sep 22, 2023 · 3 comments

Comments

@Muwak77
Copy link

Muwak77 commented Sep 22, 2023

In Foundry V11 Some Items Unexplainably do net render without any error-message. I testet with the Investigator System, but not certain if it happens in other Systems.

@jtracey
Copy link
Owner

jtracey commented Sep 23, 2023

Yeah, I noticed this as well, but haven't had time to investigate further yet. I'll try to prioritize this and figure out what's going on.

@Muwak77
Copy link
Author

Muwak77 commented Sep 27, 2023

I think i found the issue:

when a link is stored but the page is deleted, the script crashes.

in IncludeLinks line 148 i replaced

let entity = game.documentIndex.uuids[value].leaves[0].entry;

with

let entity = game.documentIndex.uuids[value]?.leaves[0]?.entry;
if(entity===undefined) {
    continue;
}

seemed to do the trick, but needs further testing

@jtracey
Copy link
Owner

jtracey commented Oct 26, 2023

Sorry for taking so long to get back to this.

It looks like you're right, though that shouldn't be happening, and is a sign of some leakage. I'll use a (slightly modified) version of your solution for now, to avoid show-stoppers like the script crashing, but my hope is that it's mainly some sort of problem from the migration and that the working sync button should be enough to resolve it. I'll keep this open for now, keeping an eye out for other potential causes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants