Skip to content

Commit e58f137

Browse files
committed
fix: conditional check for status column
1 parent a2b063c commit e58f137

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Pages/GlobalConfigurations/Authorization/UserPermissions/List/UserPermissionList.component.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { useCallback, useMemo } from 'react'
22
import {
33
ErrorScreenNotAuthorized,
44
ERROR_EMPTY_SCREEN,
5-
noop,
65
Pagination,
76
Reload,
87
TOAST_ACCESS_DENIED,
@@ -20,7 +19,7 @@ import FiltersEmptyState from '../../shared/components/FilterEmptyState/FilterEm
2019
import NoUsers from './NoUsers'
2120
import { importComponentFromFELibrary } from '../../../../../components/common'
2221

23-
const StatusHeaderCell = importComponentFromFELibrary('StatusHeaderCell', noop, 'function')
22+
const StatusHeaderCell = importComponentFromFELibrary('StatusHeaderCell', null, 'function')
2423

2524
const showStatus = !!StatusHeaderCell
2625

src/Pages/GlobalConfigurations/Authorization/UserPermissions/List/UserPermissionRow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
getRandomColor,
55
showError,
66
DeleteDialog,
7-
noop,
87
ConditionalWrap,
98
} from '@devtron-labs/devtron-fe-common-lib'
109
import { Link, useRouteMatch } from 'react-router-dom'
@@ -23,7 +22,7 @@ import { importComponentFromFELibrary } from '../../../../../components/common'
2322
import { Moment12HourFormat } from '../../../../../config'
2423
import { LAST_LOGIN_TIME_NULL_STATE } from '../constants'
2524

26-
const StatusCell = importComponentFromFELibrary('StatusCell', noop, 'function')
25+
const StatusCell = importComponentFromFELibrary('StatusCell', null, 'function')
2726

2827
const UserPermissionRow = ({
2928
id,

0 commit comments

Comments
 (0)