Skip to content

Commit abb8776

Browse files
#RI-3822-fix check topnamespace
1 parent dbaaea2 commit abb8776

File tree

1 file changed

+1
-2
lines changed
  • redisinsight/ui/src/pages/databaseAnalysis/components/top-namespace

1 file changed

+1
-2
lines changed

redisinsight/ui/src/pages/databaseAnalysis/components/top-namespace/TopNamespace.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { EuiButton, EuiLink, EuiSwitch, EuiTitle } from '@elastic/eui'
22
import cx from 'classnames'
3-
import { isNull } from 'lodash'
43
import React, { useEffect, useState } from 'react'
54
import { useDispatch } from 'react-redux'
65
import { useHistory, useParams } from 'react-router-dom'
@@ -47,7 +46,7 @@ const TopNamespace = (props: Props) => {
4746
history.push(Pages.browser(instanceId))
4847
}
4948

50-
if (isNull(data)) {
49+
if (!data?.topMemoryNsp) {
5150
return null
5251
}
5352

0 commit comments

Comments
 (0)