Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2022-08-17 11:21:55 +0300
committerMarcel Klehr <mklehr@gmx.net>2022-08-23 15:30:18 +0300
commit8dfae85b3e97d64a3347547b014f708bdbe6052e (patch)
treeaca5f33ac7238778f62e66070354cfa95f9072d5
parent41da638fc183b82be62e8dfae2f20750a87ffaf4 (diff)
Update FaceCoverMixin
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r--src/mixins/FaceCoverMixin.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mixins/FaceCoverMixin.js b/src/mixins/FaceCoverMixin.js
index c5fe1f52..a2b0f7c1 100644
--- a/src/mixins/FaceCoverMixin.js
+++ b/src/mixins/FaceCoverMixin.js
@@ -42,8 +42,8 @@ export default {
.map(file => ({ ...file, faceDetections: JSON.parse(he.decode(file.faceDetections)) }))
// sort larges face first
.sort((a, b) =>
- b.faceDetections.find(d => d.faceName === faceName).width
- - a.faceDetections.find(d => d.faceName === faceName).width
+ b.faceDetections.find(d => d.title === faceName).width
+ - a.faceDetections.find(d => d.title === faceName).width
)
// sort fewest face detections first
.sort((a, b) =>
@@ -59,7 +59,7 @@ export default {
}
const detections = cover.faceDetections
- const detection = detections.find(detection => detection.faceName === faceName)
+ const detection = detections.find(detection => detection.title === faceName)
const zoom = Math.max(1, (1 / detection.width) * 0.4)
return {