File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
redisinsight/ui/src/pages/workbench/components/wb-results/WBResults Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,11 @@ const WBResults = (props: Props) => {
52
52
</ div >
53
53
)
54
54
55
- const handleQueryProfile = ( profileType : ProfileQueryType ) => {
55
+ const handleQueryProfile = (
56
+ profileType : ProfileQueryType ,
57
+ commandExecution : { command : string , mode ?: RunQueryMode , resultsMode ?: ResultsMode }
58
+ ) => {
59
+ const { command, mode, resultsMode } = commandExecution
56
60
const profileQuery = generateProfileQueryForCommand ( command , profileType )
57
61
if ( profileQuery ) {
58
62
onQueryProfile (
@@ -101,7 +105,10 @@ const WBResults = (props: Props) => {
101
105
resultsMode = { resultsMode }
102
106
db = { db }
103
107
onQueryOpen = { ( ) => onQueryOpen ( id ) }
104
- onQueryProfile = { handleQueryProfile }
108
+ onQueryProfile = { ( profileType ) => handleQueryProfile (
109
+ profileType ,
110
+ { command, mode, resultsMode } ,
111
+ ) }
105
112
onQueryReRun = { ( ) => onQueryReRun (
106
113
command ,
107
114
null ,
You can’t perform that action at this time.
0 commit comments