mirror of https://github.com/nextcloud/photos
FaceContent: Fix basename rewrite for filenames with dashes
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
8a072cb6bc
commit
57b6aba55f
|
@ -289,7 +289,7 @@ export default {
|
|||
path: file.filename,
|
||||
list: this.faceFileIds.map(fileId => ({
|
||||
...this.files[fileId],
|
||||
basename: this.files[fileId].basename.split('-', 2)[1],
|
||||
basename: this.files[fileId].basename.substring(this.files[fileId].basename.indexOf('-') + 1),
|
||||
})).filter(file => !file.sectionHeader),
|
||||
loadMore: file.loadMore ? async () => await file.loadMore(true) : () => [],
|
||||
canLoop: file.canLoop,
|
||||
|
|
Loading…
Reference in New Issue