Skip to content

Commit dd83297

Browse files
fix group mode pipeline (#1186)
* fix group mode pipeline
1 parent 8baf6ba commit dd83297

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redisinsight/ui/src/pages/workbench/components/wb-view/WBViewWrapper.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,12 @@ const WBViewWrapper = () => {
164164
const { loading, batchSize } = state
165165
const isNewCommand = () => !commandId
166166
const getChunkSize = () => {
167-
if (resultsMode === ResultsMode.GroupMode) {
167+
if (state.resultsMode === ResultsMode.GroupMode) {
168168
return splitMonacoValuePerLines(commandInit).length
169169
}
170170
return batchSize > 1 ? batchSize : 1
171171
}
172+
172173
const commandsForExecuting = splitMonacoValuePerLines(removeMonacoComments(commandInit))
173174
.map((command) => removeMonacoComments(decode(command).trim()))
174175
const [commands, ...rest] = chunk(commandsForExecuting, getChunkSize())

0 commit comments

Comments
 (0)