|
|
|
|
@ -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]);
|
|
|
|
|
|