summaryrefslogtreecommitdiff
path: root/apps/web/src/types
diff options
context:
space:
mode:
authorMaze <167211895+mazeincoding@users.noreply.github.com>2025-07-12 15:27:00 +0200
committerGitHub <noreply@github.com>2025-07-12 15:27:00 +0200
commit800e720e6ead630a0bf2dc6ca67936dab132f2aa (patch)
treeffb2b78def328ddcce61385ee4dd03d3a976832b /apps/web/src/types
parent457d828c45c9294d2161bd6f04ffed7f6137dd1b (diff)
parent799fd2981abe010a5e4362b5c64951be5d0902c0 (diff)
downloadopencut-800e720e6ead630a0bf2dc6ca67936dab132f2aa.tar.gz
Merge pull request #208 from Sanjit-K/main
fixed: [BUG] crypto.randomUUID is not a function Runtime Error #205. …
Diffstat (limited to 'apps/web/src/types')
-rw-r--r--apps/web/src/types/timeline.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/src/types/timeline.ts b/apps/web/src/types/timeline.ts
index a759de21..17dbb5d1 100644
--- a/apps/web/src/types/timeline.ts
+++ b/apps/web/src/types/timeline.ts
@@ -1,4 +1,5 @@
import { MediaType } from "@/stores/media-store";
+import { generateUUID } from "@/lib/utils";
export type TrackType = "media" | "text" | "audio";
@@ -111,7 +112,7 @@ export function ensureMainTrack(tracks: TimelineTrack[]): TimelineTrack[] {
if (!hasMainTrack) {
// Create main track if it doesn't exist
const mainTrack: TimelineTrack = {
- id: crypto.randomUUID(),
+ id: generateUUID(),
name: "Main Track",
type: "media",
elements: [],