The swiss army knife of lossless video/audio editing
improvement
Mikael Finstad0882d1afd365
diff --git a/src/App.jsx b/src/App.jsxindex 09c28816..ef38ce97 100644--- a/src/App.jsx+++ b/src/App.jsx@@ -330,11 +330,7 @@ const App = memo(() => {end: getSegApparentEnd(cutSegment),})), [cutSegments, getSegApparentEnd]);- const invalidSegUuids = apparentCutSegments- .filter(cutSegment => cutSegment.start >= cutSegment.end)- .map(cutSegment => cutSegment.uuid);-- const haveInvalidSegs = invalidSegUuids.length > 0;+ const haveInvalidSegs = useMemo(() => apparentCutSegments.filter(cutSegment => cutSegment.start >= cutSegment.end).length > 0, [apparentCutSegments]);const currentSegIndexSafe = Math.min(currentSegIndex, cutSegments.length - 1);const currentCutSeg = useMemo(() => cutSegments[currentSegIndexSafe], [currentSegIndexSafe, cutSegments]);