Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
dashboard
Commits
d745dbe0
Commit
d745dbe0
authored
Oct 01, 2020
by
Richard Blechinger
Browse files
Return a null duration when there are no playlist entries
parent
e023a5cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/filemanager/Playlists.vue
View file @
d745dbe0
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment