Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(editor): reset camera-fullscreen selection and id counter on new project

Rodrigo Valladares05c2116c1b53
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx
index 0490cfe48..b49197da4 100644
--- a/src/components/video-editor/VideoEditor.tsx
+++ b/src/components/video-editor/VideoEditor.tsx
@@ -878,6 +878,7 @@ export default function VideoEditor() {
resetState();
// Reset non-undoable selection state.
setSelectedZoomId(null);
+ setSelectedCameraFullscreenId(null);
setSelectedTrimId(null);
setSelectedSpeedId(null);
setSelectedAnnotationId(null);
@@ -895,6 +896,7 @@ export default function VideoEditor() {
setCursorTheme(DEFAULT_CURSOR_SETTINGS.theme);
// Reset region ID counters.
nextZoomIdRef.current = 1;
+ nextCameraFullscreenIdRef.current = 1;
nextTrimIdRef.current = 1;
nextSpeedIdRef.current = 1;
nextAnnotationIdRef.current = 1;