Skip to content

Commit

Permalink
Fix a couple lint issues (#3432)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstepien authored Jan 18, 2024
1 parent e396ea8 commit 04ae6fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/demos/ColumnsReordering.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ export default function ColumnsReordering({ direction }: Props) {
setColumnsOrder((columnsOrder) => {
const sourceColumnOrderIndex = columnsOrder.findIndex(
(index) => columns[index].key === sourceKey
)!;
);
const targetColumnOrderIndex = columnsOrder.findIndex(
(index) => columns[index].key === targetKey
)!;
);
const sourceColumnOrder = columnsOrder[sourceColumnOrderIndex];
const newColumnsOrder = columnsOrder.toSpliced(sourceColumnOrderIndex, 1);
newColumnsOrder.splice(targetColumnOrderIndex, 0, sourceColumnOrder);
Expand Down

0 comments on commit 04ae6fc

Please sign in to comment.