mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00: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
1 changed files with 5 additions and 1 deletions
|
|
@ -343,7 +343,11 @@ export class MonthGroup {
|
|||
}
|
||||
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue