Skip to content

Commit b5e4a31

Browse files
Merge pull request #3482 from OneCommunityGlobal/Anthony_fix_whitescreen_on_permissions_management
Anthony/Permissions Management White Screen Fix
2 parents ba4f364 + 9a4c732 commit b5e4a31

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/components/PermissionsManagement/PermissionChangeLogTable.jsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ function PermissionChangeLogTable({ changeLogs, darkMode }) {
2323
};
2424

2525
const formatName = name => {
26-
if (name.startsWith('INDIVIDUAL:')) {
27-
return name.replace('INDIVIDUAL:', '').trim();
28-
}
26+
// if (name.startsWith('INDIVIDUAL:')) {
27+
// return name.replace('INDIVIDUAL:', '').trim();
28+
// }
2929
return name;
3030
};
3131

@@ -122,9 +122,13 @@ function PermissionChangeLogTable({ changeLogs, darkMode }) {
122122
)} ${formattedAmPmTime(log.logDateTime)}`}</td>
123123
<td
124124
className={`permission-change-log-table--cell ${bgYinmnBlue}`}
125-
style={{
126-
fontWeight: log.name.startsWith('INDIVIDUAL:') ? 'bold' : 'normal',
127-
}}
125+
style={
126+
{
127+
// Commented out the below code as log.name is undefined currently so accessing it causes the white
128+
// screen error on the Permissions Management page
129+
// fontWeight: log.name.startsWith('INDIVIDUAL:') ? 'bold' : 'normal',
130+
}
131+
}
128132
>
129133
{formatName(log.name)}
130134
</td>

0 commit comments

Comments
 (0)