File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
redisinsight/ui/src/packages/redisinsight-plugin-sdk Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# RedisInsight-plugin-sdk
2
2
3
- This document describes the high-level API for communication between RedisInsight
3
+ The high-level API for communication between RedisInsight
4
4
plugin and RedisInsight application.
5
5
6
6
## Usage
63
63
64
64
### getState()
65
65
66
- Returns the_saved state for the command visualization.
66
+ Returns saved state for the command visualization.
67
67
68
68
Throw an error if the state has not been saved.
69
69
Original file line number Diff line number Diff line change 1
1
import { sendMessageToMain } from './helpers'
2
2
import { POST_MESSAGE_EVENTS } from './events'
3
3
4
- const { config, callbacks = { counter : 0 } } = window . state
5
- const { iframeId } = config
4
+ const { config, callbacks = { counter : 0 } } = window . state || { }
5
+ const { iframeId } = config || { }
6
6
7
7
/**
8
8
* Set text to the header result
You can’t perform that action at this time.
0 commit comments