Temp fix for showing supervisor groups
This commit is contained in:
parent
dd76f23a8c
commit
df107cfc7d
@ -14,6 +14,7 @@ const SupervisorGroups = () => {
|
|||||||
const [page, setPage] = useState(1)
|
const [page, setPage] = useState(1)
|
||||||
const [perPage, setPerPage] = useState(10)
|
const [perPage, setPerPage] = useState(10)
|
||||||
const [yearGroupId] = useLocalStorageState('yearGroupId')
|
const [yearGroupId] = useLocalStorageState('yearGroupId')
|
||||||
|
const [userId] = useLocalStorageState('userId')
|
||||||
|
|
||||||
const perPageOptions = [
|
const perPageOptions = [
|
||||||
{
|
{
|
||||||
@ -96,7 +97,11 @@ const SupervisorGroups = () => {
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className="divide-y divide-gray-100">
|
<tbody className="divide-y divide-gray-100">
|
||||||
{groups?.data?.groups?.map(
|
{groups?.data?.groups
|
||||||
|
?.filter(
|
||||||
|
({ project_supervisor }) => project_supervisor.id === userId,
|
||||||
|
)
|
||||||
|
.map(
|
||||||
({
|
({
|
||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
|
Loading…
Reference in New Issue
Block a user