Revert "perf(web): optimize date groups" (#7638)

Revert "perf(web): optimize date groups (#7593)"

This reverts commit 762c4684f8.
This commit is contained in:
Michel Heusschen 2024-03-05 16:43:24 +01:00 committed by GitHub
parent 967019d9e0
commit facd0bc3a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 103 additions and 95 deletions

View file

@ -38,8 +38,8 @@
return buckets.map((bucket) => {
const segment = new Segment();
segment.count = bucket.assets.length;
segment.height = toScrollY(bucket.height);
segment.timeGroup = bucket.date;
segment.height = toScrollY(bucket.bucketHeight);
segment.timeGroup = bucket.bucketDate;
segment.date = fromLocalDateTime(segment.timeGroup);
if (previous?.date.year !== segment.date.year && height > MIN_YEAR_LABEL_DISTANCE) {