Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
amanmahajan7 committed Sep 14, 2023
1 parent 0c67c75 commit d622815
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions website/demos/ColumnsReordering.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ export default function ColumnsReordering({ direction }: Props) {
const newColumnsOrder = columnsOrder.toSpliced(sourceColumnIndex, 1);
newColumnsOrder.splice(targetColumnIndex, 0, sourceKey);
return newColumnsOrder;

newColumnsOrder.splice(targetColumnIndex, 0, newColumnsOrder.splice(sourceColumnIndex, 1)[0]);

return newColumnsOrder;
});
}, []);

Expand Down

0 comments on commit d622815

Please sign in to comment.