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

Creating rich links fails (Cannot read properties of undefined (reading 'href')) #16

Open
kevinstadler opened this issue May 5, 2022 · 0 comments

Comments

@kevinstadler
Copy link

kevinstadler commented May 5, 2022

It looks like creating rich links doesn't work anymore for websites which don't have explicit OpenGraph-metadata, I get the following (silent) error:

VM492:77 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'href')
    at eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:77:49)

I can imagine that this is actually due to a change in how records for such websites are returned by Crestify, and can be fixed around here:

const imageLink = data.links[0].href || '';

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