From d7db1c8e64d97621c05c28f4ef890eb27ba6be42 Mon Sep 17 00:00:00 2001 From: Valery Date: Sun, 7 Jul 2024 20:39:32 +0200 Subject: [PATCH 1/2] fix: MentorInfo component to render filledContacts correctly --- .../StudentDashboard/components/MentorInfo/MentorInfo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/modules/StudentDashboard/components/MentorInfo/MentorInfo.tsx b/client/src/modules/StudentDashboard/components/MentorInfo/MentorInfo.tsx index ec8e218fef..991b0e77a8 100644 --- a/client/src/modules/StudentDashboard/components/MentorInfo/MentorInfo.tsx +++ b/client/src/modules/StudentDashboard/components/MentorInfo/MentorInfo.tsx @@ -66,7 +66,7 @@ function MentorInfo({ mentor }: Props) { - {filledContacts?.length && + {filledContacts?.length > 0 && filledContacts.map(({ name, value }, idx) => ( From 2c3701dd929d63c0f0fa61331a0e9ef58e613b14 Mon Sep 17 00:00:00 2001 From: Valery Date: Fri, 12 Jul 2024 21:11:02 +0200 Subject: [PATCH 2/2] feat: add filter search by course for task --- client/src/modules/Tasks/components/TasksTable/TasksTable.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/modules/Tasks/components/TasksTable/TasksTable.tsx b/client/src/modules/Tasks/components/TasksTable/TasksTable.tsx index c33c1ef2c2..8b593b9a21 100644 --- a/client/src/modules/Tasks/components/TasksTable/TasksTable.tsx +++ b/client/src/modules/Tasks/components/TasksTable/TasksTable.tsx @@ -61,6 +61,7 @@ function getColumns( ], onFilter: (value, record) => value ? record.courses.some(({ name }) => name === `${value}`) : record.courses.length === 0, + filterSearch: true, }, { title: ColumnName.DescriptionURL,