diff --git a/src/renderer.jsx b/src/renderer.jsx index de4c8e99..4d2ff772 100644 --- a/src/renderer.jsx +++ b/src/renderer.jsx @@ -504,6 +504,11 @@ const App = memo(() => { const segments = invertCutSegments ? inverseCutSegments : apparentCutSegments; + if (!segments) { + errorToast('No segments to export!'); + return; + } + const ffmpegSegments = segments.map((seg) => ({ cutFrom: seg.start, cutTo: seg.end,