diff --git a/samples/react-rss-reader/src/services/RssXmlParserService/rssXmlParserService.ts b/samples/react-rss-reader/src/services/RssXmlParserService/rssXmlParserService.ts index 8f670c081..208b49463 100644 --- a/samples/react-rss-reader/src/services/RssXmlParserService/rssXmlParserService.ts +++ b/samples/react-rss-reader/src/services/RssXmlParserService/rssXmlParserService.ts @@ -161,7 +161,7 @@ export class RssXmlParserService { public static buildRSS2(xmlObj) { let channel:any = Array.isArray(xmlObj.rss.channel) ? xmlObj.rss.channel[0] : xmlObj.rss.channel; - let items = channel.item; + let items = Array.isArray(channel.item) ? channel.item : [channel.item]; let feed = this.buildRSS(channel, items); if (xmlObj.rss.$ && xmlObj.rss.$['xmlns:itunes']) { this.decorateItunes(feed, channel);