File tree Expand file tree Collapse file tree 2 files changed +0
-3
lines changed
components/query-card/QueryCardCliPlugin Expand file tree Collapse file tree 2 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ const QueryCardCliPlugin = (props: Props) => {
45
45
const generatedIframeNameRef = useRef < string > ( '' )
46
46
const { theme } = useContext ( ThemeContext )
47
47
48
- const dispatch = useDispatch ( )
49
-
50
48
const sendMessageToPlugin = ( data = { } ) => {
51
49
const event : any = document . createEvent ( 'Event' )
52
50
event . initEvent ( 'message' , false , false )
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ export const importPluginScript = () => (config) => {
57
57
globalThis . onmessage = ( e ) => {
58
58
// eslint-disable-next-line sonarjs/no-collapsible-if
59
59
if ( e . data . event === events . EXECUTE_COMMAND ) {
60
- globalThis . plugin [ e . data . method ] && globalThis . plugin [ e . data . method ] ( e . data . data )
61
60
const { plugin } = globalThis
62
61
// eslint-disable-next-line no-prototype-builtins
63
62
if ( plugin . hasOwnProperty ( e . data . method ) ) {
You can’t perform that action at this time.
0 commit comments