You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-07-17 15:47:54 +02: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:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user