We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e396ea8 commit 04ae6fcCopy full SHA for 04ae6fc
website/demos/ColumnsReordering.tsx
@@ -102,10 +102,10 @@ export default function ColumnsReordering({ direction }: Props) {
102
setColumnsOrder((columnsOrder) => {
103
const sourceColumnOrderIndex = columnsOrder.findIndex(
104
(index) => columns[index].key === sourceKey
105
- )!;
+ );
106
const targetColumnOrderIndex = columnsOrder.findIndex(
107
(index) => columns[index].key === targetKey
108
109
const sourceColumnOrder = columnsOrder[sourceColumnOrderIndex];
110
const newColumnsOrder = columnsOrder.toSpliced(sourceColumnOrderIndex, 1);
111
newColumnsOrder.splice(targetColumnOrderIndex, 0, sourceColumnOrder);
0 commit comments