Chore: First table column should not be hideable (#1711)

* First table column should not be hideable

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: chiazokam <chiazokamecheta@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: chiazokam <chiazokamecheta@gmail.com>

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: chiazokam <chiazokamecheta@gmail.com>
This commit is contained in:
gitstart-twenty
2023-09-25 11:26:41 +01:00
committed by GitHub
parent 0ce11b6908
commit fabbe7ddf2
6 changed files with 117 additions and 74 deletions

View File

@ -95,7 +95,7 @@ export const TableOptionsDropdownContent = () => {
const handleReorderField: OnDragEndResponder = useCallback(
(result) => {
if (!result.destination) {
if (!result.destination || result.destination.index === 0) {
return;
}