The open-source CapCut alternative
ts error
Maze Winther65b04f5759b0
diff --git a/apps/web/src/hooks/use-aspect-ratio.ts b/apps/web/src/hooks/use-aspect-ratio.tsindex e3e85141..35d2cec4 100644--- a/apps/web/src/hooks/use-aspect-ratio.ts+++ b/apps/web/src/hooks/use-aspect-ratio.ts@@ -1,9 +1,13 @@import { useEditorStore } from "@/stores/editor-store";import { useMediaStore, getMediaAspectRatio } from "@/stores/media-store";import { useTimelineStore } from "@/stores/timeline-store";+import { DEFAULT_CANVAS_SIZE, useProjectStore } from "@/stores/project-store";export function useAspectRatio() {- const { canvasSize, canvasMode, canvasPresets } = useEditorStore();+ const { canvasPresets } = useEditorStore();+ const { activeProject } = useProjectStore();+ const canvasSize = activeProject?.canvasSize || DEFAULT_CANVAS_SIZE;+ const canvasMode = activeProject?.canvasMode || "preset";const { mediaItems } = useMediaStore();const { tracks } = useTimelineStore();