From c3c19fd589287cb54fe27a26def2b3fd92facaa3 Mon Sep 17 00:00:00 2001
From: berinkrktt <73306985+berinkrktt@users.noreply.github.com>
Date: Sat, 5 Mar 2022 16:34:34 +0300
Subject: [PATCH] Null List Transaction | SIS-121 (#43)
* Department and Faculty List page Updated and Fixed
* Lesson List page Updated and Fixed
* Officer List page Updated and Fixed
* Student List page Updated and Fixed
* Teacher List page Updated and Fixed
---
pages/officer/operation/department/index.js | 2 +-
pages/officer/operation/faculty/index.js | 2 +-
pages/officer/operation/lesson/index.js | 8 ++++++--
pages/officer/operation/staff/index.js | 2 +-
pages/officer/operation/student/index.js | 2 +-
pages/officer/operation/teacher/index.js | 2 +-
6 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/pages/officer/operation/department/index.js b/pages/officer/operation/department/index.js
index 36f26e37..a331315c 100644
--- a/pages/officer/operation/department/index.js
+++ b/pages/officer/operation/department/index.js
@@ -65,7 +65,7 @@ export default function DepartmentList({isPagePermissionSuccess, departments}) {
{(
- departments != null
+ departments.length !== 0
?
diff --git a/pages/officer/operation/faculty/index.js b/pages/officer/operation/faculty/index.js
index 7f6bf104..dad5f645 100644
--- a/pages/officer/operation/faculty/index.js
+++ b/pages/officer/operation/faculty/index.js
@@ -65,7 +65,7 @@ export default function FacultyList({isPagePermissionSuccess, faculties}) {
{(
- faculties != null
+ faculties.length !== 0
?
diff --git a/pages/officer/operation/lesson/index.js b/pages/officer/operation/lesson/index.js
index b027c0e5..fb8f3b6b 100644
--- a/pages/officer/operation/lesson/index.js
+++ b/pages/officer/operation/lesson/index.js
@@ -64,6 +64,9 @@ export default function TeacherLessonList({isPagePermissionSuccess, lessons}) {
DERS EKLE
+ {(
+ lessons.length !== 0
+ ?
@@ -98,8 +101,6 @@ export default function TeacherLessonList({isPagePermissionSuccess, lessons}) {
- {
- }
{lessons.map((lesson) => (
@@ -264,6 +265,9 @@ export default function TeacherLessonList({isPagePermissionSuccess, lessons}) {
{/* */}
{/* */}
+ :
+ null
+ )}
diff --git a/pages/officer/operation/staff/index.js b/pages/officer/operation/staff/index.js
index ad04624f..7505ed97 100644
--- a/pages/officer/operation/staff/index.js
+++ b/pages/officer/operation/staff/index.js
@@ -64,7 +64,7 @@ export default function OfficerList({isPagePermissionSuccess, officers}) {
{(
- officers !== null
+ officers.length !== 0
?
diff --git a/pages/officer/operation/student/index.js b/pages/officer/operation/student/index.js
index fdd7ebda..30a80c92 100644
--- a/pages/officer/operation/student/index.js
+++ b/pages/officer/operation/student/index.js
@@ -64,7 +64,7 @@ export default function StudentList({isPagePermissionSuccess, students}) {
{(
- students != null
+ students.length !== 0
?
diff --git a/pages/officer/operation/teacher/index.js b/pages/officer/operation/teacher/index.js
index 18407f18..d31d5ebd 100644
--- a/pages/officer/operation/teacher/index.js
+++ b/pages/officer/operation/teacher/index.js
@@ -65,7 +65,7 @@ export default function TeacherList({isPagePermissionSuccess, teachers}) {
{(
- teachers !== null
+ teachers.length !== 0
?
|