Skip to content

Commit a950a57

Browse files
authored
Merge pull request #2263 from tekdi/feat-new-issue-fix
Feat new issue fix
2 parents 6b2f5e7 + d810292 commit a950a57

File tree

3 files changed

+6
-5
lines changed
  • mfes
    • scp-teacher-repo/src/pages/observation/[observationId]
    • workspace/src/pages/workspace/content

3 files changed

+6
-5
lines changed

mfes/scp-teacher-repo/src/pages/observation/[observationId]/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ const ObservationDetails = () => {
271271
}
272272
}
273273
} catch (error) {
274+
274275
console.error('Error fetching cohort list:', error);
275276
}
276277
};
@@ -303,7 +304,7 @@ const ObservationDetails = () => {
303304
if (entity !== ObservationEntityType.CENTER) {
304305
result = Data.map((user) => {
305306
const submission =
306-
fetchEntityResponse.find((sub) => sub._id === user.userId) || {};
307+
fetchEntityResponse?.find((sub) => sub._id === user.userId) || {};
307308
return {
308309
name: user.name,
309310
_id: user.userId,
@@ -318,7 +319,7 @@ const ObservationDetails = () => {
318319
result =
319320
myCohortListForCenter?.map((cohort) => {
320321
const submission =
321-
fetchEntityResponse.find((sub) => sub._id === cohort.cohortId) ||
322+
fetchEntityResponse?.find((sub) => sub._id === cohort.cohortId) ||
322323
{};
323324
return {
324325
name: cohort?.name,
@@ -771,7 +772,7 @@ const ObservationDetails = () => {
771772
mx: '11px',
772773
}}
773774
>
774-
{loading ? (
775+
{loading || !observationId || observationId === '' ? (
775776
<Box mx="auto">
776777
<Loader
777778
showBackdrop={false}

mfes/workspace/src/pages/workspace/content/allContents/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const columns = [
8181
key: 'contentAction',
8282
title: 'ACTION',
8383
dataType: DataType.String,
84-
width: '140px',
84+
width: '220px',
8585
},
8686
];
8787
const AllContentsPage = () => {

mfes/workspace/src/pages/workspace/content/publish/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const columns = [
4242
dataType: DataType.String,
4343
width: '180px',
4444
},
45-
{ key: 'action', title: 'ACTION', dataType: DataType.String, width: '200px' },
45+
{ key: 'action', title: 'ACTION', dataType: DataType.String, width: '220px' },
4646
];
4747
const PublishPage = () => {
4848
const tenantConfig = useTenantConfig();

0 commit comments

Comments
 (0)