Skip to content

Commit dd46cc3

Browse files
committed
fix: check err first before update the database status
1 parent 2b732bd commit dd46cc3

File tree

1 file changed

+3
-0
lines changed
  • client/components/main/Main/Database/KeyBrowser

1 file changed

+3
-0
lines changed

client/components/main/Main/Database/KeyBrowser/Footer.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class Footer extends React.Component {
2121

2222
updateInfo() {
2323
this.props.redis.info((err, res) => {
24+
if (err) {
25+
return;
26+
}
2427
const info = {};
2528

2629
const lines = res.split('\r\n');

0 commit comments

Comments
 (0)