1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

Fix first column reordering

This commit is contained in:
Yashizzle
2026-03-17 10:56:31 +11:00
committed by GitHub
parent 15c6fa8f0e
commit d7ffa030be
@@ -110,7 +110,7 @@ function TableOptionsModal({
const handleColumnDragEnd = useCallback(
(didDrop: boolean) => {
if (didDrop && dragIndex && dropIndex !== null) {
if (didDrop && dragIndex !== null && dropIndex !== null) {
const newColumns = [...columns];
const items = newColumns.splice(dragIndex, 1);
newColumns.splice(dropIndex, 0, items[0]);