Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ const QueryCardCliResult = (props: Props) => {
)
}

export default QueryCardCliResult
export default React.memo(QueryCardCliResult)
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,16 @@ const WBViewWrapper = () => {
) => {
const { loading, batchSize } = state
const isNewCommand = () => !commandId
const commandsForExecuting = splitMonacoValuePerLines(removeMonacoComments(commandInit))
.map((command) => removeMonacoComments(decode(command).trim()))
const commandsForExecuting = without(
splitMonacoValuePerLines(commandInit)
.map((command) => removeMonacoComments(decode(command).trim())),
''
)

const [commands, ...rest] = chunk(commandsForExecuting, batchSize > 1 ? batchSize : 1)
const multiCommands = rest.map((command) => getMultiCommands(command))
if (!commands.length || loading) {

if (!commands?.length || loading) {
setMultiCommands(multiCommands)
return
}
Expand Down