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

Export fails if pin description is null #16

Open
ArtBIT opened this issue Jan 30, 2024 · 0 comments
Open

Export fails if pin description is null #16

ArtBIT opened this issue Jan 30, 2024 · 0 comments

Comments

@ArtBIT
Copy link

ArtBIT commented Jan 30, 2024

I tried exporting my collection and the script resulted in an error:

VM800:177 Uncaught TypeError: Cannot read properties of null (reading 'replace')
    at escapeHtml (<anonymous>:177:19)
    at <anonymous>:199:186
    at Array.forEach (<anonymous>)
    at done (<anonymous>:198:14)
    at parseFeed (<anonymous>:136:7)
    at xhr.onload (<anonymous>:147:9)

After some debugging, it turned out one of my pins had null description.

ArtBIT added a commit to ArtBIT/pinback that referenced this issue Jan 30, 2024
Make sure that `escapeHtml` does not bomb on non-string values. Fixes pinbackit#16
ArtBIT added a commit to ArtBIT/pinback that referenced this issue Feb 1, 2024
Make sure that `escapeHtml` does not bomb on non-string values. Fixes pinbackit#16
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

1 participant