progrssive icon indicating copy to clipboard operation
progrssive copied to clipboard

Application error: a client-side exception has occurred

Open affinage-digital opened this issue 3 years ago • 2 comments

After adding unvalid RSS i have error image

image

BTW, Thank you for this great PWA

affinage-digital avatar Apr 27 '22 15:04 affinage-digital

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)?

fallaciousreasoning avatar Apr 28 '22 02:04 fallaciousreasoning

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

affinage-digital avatar May 01 '22 08:05 affinage-digital