Skip to content

Commit fa2a641

Browse files
committed
update redisinsight-plugin-sdk
1 parent b58d977 commit fa2a641

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

redisinsight/ui/src/packages/redisinsight-plugin-sdk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RedisInsight-plugin-sdk
22

3-
This document describes the high-level API for communication between RedisInsight
3+
The high-level API for communication between RedisInsight
44
plugin and RedisInsight application.
55

66
## Usage
@@ -63,7 +63,7 @@ try {
6363

6464
### getState()
6565

66-
Returns the_saved state for the command visualization.
66+
Returns saved state for the command visualization.
6767

6868
Throw an error if the state has not been saved.
6969

redisinsight/ui/src/packages/redisinsight-plugin-sdk/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { sendMessageToMain } from './helpers'
22
import { POST_MESSAGE_EVENTS } from './events'
33

4-
const { config, callbacks = { counter: 0 } } = window.state
5-
const { iframeId } = config
4+
const { config, callbacks = { counter: 0 } } = window.state || {}
5+
const { iframeId } = config || {}
66

77
/**
88
* Set text to the header result

0 commit comments

Comments
 (0)