Skip to content
Snippets Groups Projects
Commit e37cd0a7 authored by David Trattnig's avatar David Trattnig
Browse files

feat: every changing requirements; show only next 2 episodes : )

parent 4c8e1116
No related branches found
No related tags found
No related merge requests found
Pipeline #8698 passed
...@@ -151,9 +151,13 @@ ...@@ -151,9 +151,13 @@
console.log('Base episodes of show API response:', data); console.log('Base episodes of show API response:', data);
// Return all future episodes which have some title & description // Return all future episodes which have some title & description
episodesNext = next.filter( // episodesNext = next.filter(
(e) => e.note.title && (e.note.summary?.trim() || e.note.content_only?.trim()) // (e) => e.note.title && (e.note.summary?.trim() || e.note.content_only?.trim())
); // );
// Show only the three coming-up episodes
episodesNext = next.slice(0, 3);
episodesNext = episodesNext.reverse(); episodesNext = episodesNext.reverse();
episodes = episodesNext.concat(past); episodes = episodesNext.concat(past);
console.log('Next complete episodes of show API response:', episodesNext); console.log('Next complete episodes of show API response:', episodesNext);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment