This commit is contained in:
Maze Winther
2026-01-21 00:59:03 +01:00
parent 7f50de14fc
commit e1d82eca09
28 changed files with 1223 additions and 1009 deletions
@@ -384,12 +384,8 @@ export class ProjectManager {
const tracks = this.editor.timeline.getTracks();
const mediaAssets = this.editor.media.getAssets();
const allElements: TimelineElement[] = tracks.flatMap(
(track) => track.elements as TimelineElement[],
);
const sortedElements = allElements.sort(
(a, b) => a.startTime - b.startTime,
);
const allElements = tracks.flatMap((track): TimelineElement[] => track.elements);
const sortedElements = allElements.sort((a, b) => a.startTime - b.startTime);
const firstElement = sortedElements[0];
if (