diff --git a/geneit_app/src/routes/family/FamilyUsersListRoute.tsx b/geneit_app/src/routes/family/FamilyUsersListRoute.tsx index db54a99..f047ddd 100644 --- a/geneit_app/src/routes/family/FamilyUsersListRoute.tsx +++ b/geneit_app/src/routes/family/FamilyUsersListRoute.tsx @@ -118,8 +118,10 @@ function UsersTable(p: { type: "boolean", editable: family.family.is_admin, }, + ]; - { + if (family.family.is_admin) + columns.push({ field: "actions", type: "actions", headerName: "Actions", @@ -166,8 +168,7 @@ function UsersTable(p: { />, ]; }, - }, - ]; + }); return (