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: guard exported file paths in export flow

Siddharth1680ef9b7757
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx
index 1b6de7e48..0f8b93e97 100644
--- a/src/components/video-editor/VideoEditor.tsx
+++ b/src/components/video-editor/VideoEditor.tsx
@@ -1040,7 +1040,7 @@ export default function VideoEditor() {
if (saveResult.canceled) {
toast.info("Export canceled");
- } else if (saveResult.success) {
+ } else if (saveResult.success && saveResult.path) {
handleExportSaved("GIF", saveResult.path);
} else {
setExportError(saveResult.message || "Failed to save GIF");
@@ -1167,7 +1167,7 @@ export default function VideoEditor() {
if (saveResult.canceled) {
toast.info("Export canceled");
- } else if (saveResult.success) {
+ } else if (saveResult.success && saveResult.path) {
handleExportSaved("Video", saveResult.path);
} else {
setExportError(saveResult.message || "Failed to save video");