Fix(route): fix coolapk/huati, err when item.shareUrl is undefined (#8860)
This commit is contained in:
parent
4df468d36a
commit
6193097708
|
|
@ -58,6 +58,8 @@ const parseDynamic = async (item, ctx) => {
|
|||
const pubDate = new Date(item.lastupdate * 1000).toUTCString();
|
||||
if (item.entityType === 'sponsorCard') {
|
||||
return;
|
||||
} else if (item.shareUrl === undefined) {
|
||||
return;
|
||||
}
|
||||
const itemUrl = item.shareUrl.split('?')[0];
|
||||
let description, title;
|
||||
|
|
|
|||
Loading…
Reference in New Issue