High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: .find() iterator api combat (#19293)
Alexc8a135a7ae53
diff --git a/web/src/lib/managers/timeline-manager/month-group.svelte.ts b/web/src/lib/managers/timeline-manager/month-group.svelte.tsindex f18a1e6413..bbcfe88caa 100644--- a/web/src/lib/managers/timeline-manager/month-group.svelte.ts+++ b/web/src/lib/managers/timeline-manager/month-group.svelte.ts@@ -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) {