Skip to content

Commit 15579fa

Browse files
author
Roman.Sergeenko
committed
#RI-2088 - remove unused lines
1 parent 215ad81 commit 15579fa

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

redisinsight/ui/src/components/query-card/QueryCardCliPlugin/QueryCardCliPlugin.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ const QueryCardCliPlugin = (props: Props) => {
4545
const generatedIframeNameRef = useRef<string>('')
4646
const { theme } = useContext(ThemeContext)
4747

48-
const dispatch = useDispatch()
49-
5048
const sendMessageToPlugin = (data = {}) => {
5149
const event: any = document.createEvent('Event')
5250
event.initEvent('message', false, false)

redisinsight/ui/src/plugins/pluginImport.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export const importPluginScript = () => (config) => {
5757
globalThis.onmessage = (e) => {
5858
// eslint-disable-next-line sonarjs/no-collapsible-if
5959
if (e.data.event === events.EXECUTE_COMMAND) {
60-
globalThis.plugin[e.data.method] && globalThis.plugin[e.data.method](e.data.data)
6160
const { plugin } = globalThis
6261
// eslint-disable-next-line no-prototype-builtins
6362
if (plugin.hasOwnProperty(e.data.method)) {

0 commit comments

Comments
 (0)