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

Application error: a client-side exception has occurred #26

Open
affinage-digital opened this issue Apr 27, 2022 · 2 comments
Open

Application error: a client-side exception has occurred #26

affinage-digital opened this issue Apr 27, 2022 · 2 comments

Comments

@affinage-digital
Copy link

After adding unvalid RSS i have error
image

image

BTW, Thank you for this great PWA

@fallaciousreasoning
Copy link
Owner

fallaciousreasoning commented Apr 28, 2022

Hey, glad you like it! I've added a bit more error handling to the OPML importer - would you mind checking it works now (feel free to reopen if it doesn't)?

@affinage-digital
Copy link
Author

Did not help.
I think probles is here ./services/entry.ts

export const getEntrySummary = (entry: Entry) => {
    if (!entry) return;

    const detail = entry.summary || entry.content;
    const content = detail.content;

    return sanitizeContent(content, ['iframe']);
}

change to

export const getEntrySummary = (entry: Entry) => {
    if (!entry) return;

    const detail = entry.summary || entry.content;
    const content = detail?.content || '';

    return sanitizeContent(content, ['iframe']);
}

I didn't test. If you make an edit, I can test on a not filled RSS-channel

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