mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-03-02 01:39:21 +00:00
Merge pull request #4014 from koskimiesl/react-rss-reader-fix
This commit is contained in:
commit
7e53857b88
@ -37,6 +37,8 @@ Main features include:
|
||||

|
||||

|
||||
|
||||
Tested with: Node.js v10.16.3
|
||||
|
||||
## Applies to
|
||||
|
||||
* [SharePoint Framework](https://learn.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview)
|
||||
@ -44,9 +46,10 @@ Main features include:
|
||||
|
||||
## Contributors
|
||||
|
||||
* [Eric Overfield](https://github.com/eoverfield)
|
||||
* [Abderahman Moujahid](https://github.com/Abderahman88)
|
||||
* [Eric Overfield](https://github.com/eoverfield)
|
||||
* [Kalle Mansikkaniemi](https://github.com/djsladi)
|
||||
* [Lauri Koskimies](https://github.com/koskimiesl)
|
||||
|
||||
## Version history
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
"A RSS Reader original based on work completed by Olivier Carpentier\u0027s"
|
||||
],
|
||||
"creationDateTime": "2020-11-22",
|
||||
"updateDateTime": "2023-05-23",
|
||||
"updateDateTime": "2023-08-18",
|
||||
"products": [
|
||||
"SharePoint"
|
||||
],
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user