Skip to content

Commit

Permalink
Make sure we have a valid fileID for albums content
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Sep 22, 2022
1 parent 226c98e commit ef73068
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/AlbumContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,13 @@ export default {
}
)
// Gen files info and filtering invalid files
const fetchedFiles = response.data
.map(file => genFileInfo(file))
.filter(file => file.fileid)
const fileIds = fetchedFiles
.map(file => file.fileid)
.map((fileId) => fileId.toString())
.map(file => file.fileid.toString())
this.appendFiles(fetchedFiles)
Expand Down

0 comments on commit ef73068

Please sign in to comment.