File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/src/components/Folder Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,19 +64,21 @@ class FolderPanel extends React.Component {
6464const folderView = ! (
6565params . rssFeedID || params . podcastID
6666) ;
67+
6768for ( const f of folder . feeds ) {
6869const feedOpen =
6970folderView ||
7071f . _id === params . rssFeedID ||
7172f . _id === params . podcastID ;
73+ const isRss = f . categories . toLowerCase ( ) === 'rss' ;
7274result . push (
7375< Link
7476className = { `panel-element folder-element ${
7577feedOpen ? 'highlighted' : ''
7678} `}
7779key = { f . _id }
7880to = { `/folders/${ folder . _id } /${
79- f . categories === 'rss' ? 'r' : 'p'
81+ isRss ? 'r' : 'p'
8082} /${ f . _id } `}
8183>
8284< Img
@@ -88,9 +90,7 @@ class FolderPanel extends React.Component {
8890/>
8991< div > { f . title } </ div >
9092< div className = "type" >
91- { f . categories === 'rss'
92- ? 'RSS'
93- : 'PODCAST' }
93+ { isRss ? 'RSS' : 'PODCAST' }
9494</ div >
9595</ Link > ,
9696) ;
You can’t perform that action at this time.
0 commit comments