The swiss army knife of lossless video/audio editing
improve logic
Mikael Finstadd43e47ca40bd
diff --git a/src/App.jsx b/src/App.jsxindex e1b8af88..957ce0e7 100644--- a/src/App.jsx+++ b/src/App.jsx@@ -357,7 +357,7 @@ const App = memo(() => {end: getSegApparentEnd(cutSegment),})), [cutSegments, getSegApparentEnd]);- const haveInvalidSegs = useMemo(() => apparentCutSegments.filter(cutSegment => cutSegment.start >= cutSegment.end).length > 0, [apparentCutSegments]);+ const haveInvalidSegs = useMemo(() => apparentCutSegments.some((cutSegment) => cutSegment.start >= cutSegment.end), [apparentCutSegments]);const currentSegIndexSafe = Math.min(currentSegIndex, cutSegments.length - 1);const currentCutSeg = useMemo(() => cutSegments[currentSegIndexSafe], [currentSegIndexSafe, cutSegments]);