Skip to content

Commit c8a135a

Browse files
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 <[email protected]> --------- Co-authored-by: Daniel Dietzler <[email protected]>
1 parent 08d1cf5 commit c8a135a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/src/lib/managers/timeline-manager/month-group.svelte.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@ export class MonthGroup {
343343
}
344344

345345
findAssetById(assetDescriptor: AssetDescriptor) {
346-
return this.assetsIterator().find((asset) => asset.id === assetDescriptor.id);
346+
for (const asset of this.assetsIterator()) {
347+
if (asset.id === assetDescriptor.id) {
348+
return asset;
349+
}
350+
}
347351
}
348352

349353
findClosest(target: TimelinePlainDateTime) {

0 commit comments

Comments
 (0)