Commit d745dbe0 authored by Richard Blechinger's avatar Richard Blechinger
Browse files

Return a null duration when there are no playlist entries

parent e023a5cc
......@@ -189,6 +189,10 @@ export default {
},
playlistDuration({ item }) {
if (!item.entries) {
return 0;
}
const totalDuration = item.entries.reduce((acc, entry) => {
const newDuration = acc + entry.duration;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment