mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
fix: .find() iterator api combat (#19293)
* fix: .find() iterator api combar * Update web/src/lib/managers/timeline-manager/month-group.svelte.ts Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> --------- Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
This commit is contained in:
parent
08d1cf5bde
commit
c8a135a7ae
@ -343,7 +343,11 @@ export class MonthGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
findAssetById(assetDescriptor: AssetDescriptor) {
|
findAssetById(assetDescriptor: AssetDescriptor) {
|
||||||
return this.assetsIterator().find((asset) => asset.id === assetDescriptor.id);
|
for (const asset of this.assetsIterator()) {
|
||||||
|
if (asset.id === assetDescriptor.id) {
|
||||||
|
return asset;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
findClosest(target: TimelinePlainDateTime) {
|
findClosest(target: TimelinePlainDateTime) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user