File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
redisinsight/ui/src/components/query-card/QueryCardCliPlugin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ const QueryCardCliPlugin = (props: Props) => {
66
66
pluginIframeRef ?. current ?. contentWindow ?. dispatchEvent ( event )
67
67
}
68
68
69
- const executeCommand = ( ) => {
69
+ const executeCommand = ( method : string ) => {
70
70
sendMessageToPlugin ( {
71
71
event : 'executeCommand' ,
72
- method : currentView . activationMethod ,
72
+ method,
73
73
data : { command : query , data : result }
74
74
} )
75
75
}
@@ -167,7 +167,7 @@ const QueryCardCliPlugin = (props: Props) => {
167
167
pluginApi . onEvent ( generatedIframeNameRef . current , PluginEvents . loaded , ( ) => {
168
168
setIsPluginLoaded ( true )
169
169
setError ( '' )
170
- executeCommand ( )
170
+ executeCommand ( currentView . activationMethod )
171
171
} )
172
172
173
173
pluginApi . onEvent ( generatedIframeNameRef . current , PluginEvents . error , ( error : string ) => {
@@ -226,7 +226,7 @@ const QueryCardCliPlugin = (props: Props) => {
226
226
setCurrentPlugin ( plugin ?. name || null )
227
227
return
228
228
}
229
- executeCommand ( )
229
+ executeCommand ( view . activationMethod )
230
230
}
231
231
} , [ result , id ] )
232
232
You can’t perform that action at this time.
0 commit comments