fix: set default fps on project creation

This commit is contained in:
Maze Winther 2025-07-31 21:47:02 +02:00
parent 3c64f9cfa2
commit 1603dd0e58
1 changed files with 2 additions and 1 deletions

View File

@ -154,6 +154,7 @@ export const useProjectStore = create<ProjectStore>((set, get) => ({
backgroundType: "color",
blurIntensity: 8,
bookmarks: [],
fps: 30,
};
set({ activeProject: newProject });
@ -334,9 +335,9 @@ export const useProjectStore = create<ProjectStore>((set, get) => ({
existingNumbers.length > 0 ? Math.max(...existingNumbers) + 1 : 1;
const newProject: TProject = {
...project, // Copy all properties from the original project
id: generateUUID(),
name: `(${nextNumber}) ${baseName}`,
thumbnail: project.thumbnail,
createdAt: new Date(),
updatedAt: new Date(),
};