summaryrefslogtreecommitdiff
path: root/apps/web
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-06-30 19:57:13 +0200
committerMaze Winther <mazewinther@gmail.com>2025-06-30 19:57:13 +0200
commitcd30c205b4019fb38371ced956abe55b47054433 (patch)
tree683502370b027a268ce64a67a99aa284b0134678 /apps/web
parent16a319f2e4d05f8c2a4367da38ee5c4b08ec0453 (diff)
downloadopencut-cd30c205b4019fb38371ced956abe55b47054433.tar.gz
fix: await addMediaItem in timeline component to ensure proper item processing
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/src/components/editor/timeline.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx
index 94509be3..b16250ea 100644
--- a/apps/web/src/components/editor/timeline.tsx
+++ b/apps/web/src/components/editor/timeline.tsx
@@ -355,7 +355,7 @@ export function Timeline() {
(p) => setProgress(p)
);
for (const processedItem of processedItems) {
- addMediaItem(processedItem);
+ await addMediaItem(processedItem);
const currentMediaItems = useMediaStore.getState().mediaItems;
const addedItem = currentMediaItems.find(
(item) =>