umd-mith / airwaves

Unlocking the Airwaves
https://mith.umd.edu/airwaves/
MIT License
9 stars 2 forks source link

Unserializable page titles for episodes #3

Closed trevormunoz closed 3 years ago

trevormunoz commented 3 years ago

It looks as though the title for episode pages should display the series name then the episode name, e.g. "Unlocking the Airwaves — Advances in Science: Sample" for https://unlocking.netlify.app/episode/cpb-aacip-500-sq8qhb3b/

It looks as though an object instead of a string is getting passed into title

Screen Shot 2021-03-11 at 3 37 54 PM Screen Shot 2021-03-11 at 3 36 31 PM
edsu commented 3 years ago

At the moment I think the episode template is just putting the title there?

https://github.com/umd-mith/airwaves/blob/master/src/templates/episode.js#L87

edsu commented 3 years ago

Oh, this was the page title, not the heading.

trevormunoz commented 3 years ago

Looks like series.title is often undefined?

edsu commented 3 years ago

Sorry, I should have checked that the problem was actually fixed!