This commit is contained in:
Preet 2023-10-21 16:41:32 -07:00
parent c2867c9a93
commit 0360e64219
2 changed files with 19 additions and 7 deletions

View file

@ -1475,7 +1475,6 @@ export class LinearElementEditor {
static toggleSegmentSplitAtIndex(
element: NonDeleted<ExcalidrawLinearElement>,
appState: AppState,
index: number,
) {
let found = false;
@ -1491,7 +1490,7 @@ export class LinearElementEditor {
}
mutateElement(element, {
segmentSplitIndices: splitIndices,
segmentSplitIndices: splitIndices.sort(),
});
}
}