mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: set default fps on project creation
This commit is contained in:
@@ -154,6 +154,7 @@ export const useProjectStore = create<ProjectStore>((set, get) => ({
|
|||||||
backgroundType: "color",
|
backgroundType: "color",
|
||||||
blurIntensity: 8,
|
blurIntensity: 8,
|
||||||
bookmarks: [],
|
bookmarks: [],
|
||||||
|
fps: 30,
|
||||||
};
|
};
|
||||||
|
|
||||||
set({ activeProject: newProject });
|
set({ activeProject: newProject });
|
||||||
@@ -334,9 +335,9 @@ export const useProjectStore = create<ProjectStore>((set, get) => ({
|
|||||||
existingNumbers.length > 0 ? Math.max(...existingNumbers) + 1 : 1;
|
existingNumbers.length > 0 ? Math.max(...existingNumbers) + 1 : 1;
|
||||||
|
|
||||||
const newProject: TProject = {
|
const newProject: TProject = {
|
||||||
|
...project, // Copy all properties from the original project
|
||||||
id: generateUUID(),
|
id: generateUUID(),
|
||||||
name: `(${nextNumber}) ${baseName}`,
|
name: `(${nextNumber}) ${baseName}`,
|
||||||
thumbnail: project.thumbnail,
|
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user