File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
pages/workbench/components/wb-view Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ $marginIcon: 12px;
40
40
}
41
41
42
42
.titleWrapper {
43
- width : calc (100% - 350 px );
43
+ width : calc (100% - 380 px );
44
44
45
45
@media (min-width : $breakpoint-m ) {
46
46
width : calc (100% - 420px );
Original file line number Diff line number Diff line change @@ -145,21 +145,18 @@ const WBViewWrapper = () => {
145
145
) => {
146
146
const { loading, batchSize } = state
147
147
const isNewCommand = ( ) => ! commandId
148
- const [ commands , ...rest ] = chunk ( splitMonacoValuePerLines ( commandInit ) , batchSize > 1 ? batchSize : 1 )
148
+ const commandsForExecuting = splitMonacoValuePerLines ( removeMonacoComments ( commandInit ) )
149
+ . map ( ( command ) => removeMonacoComments ( decode ( command ) . trim ( ) ) )
150
+ const [ commands , ...rest ] = chunk ( commandsForExecuting , batchSize > 1 ? batchSize : 1 )
149
151
const multiCommands = rest . map ( ( command ) => getMultiCommands ( command ) )
150
- const commandLine = without (
151
- commands . map ( ( command ) => removeMonacoComments ( decode ( command ) . trim ( ) ) ) ,
152
- ''
153
- )
154
-
155
- if ( ! commandLine . length || loading ) {
152
+ if ( ! commands . length || loading ) {
156
153
setMultiCommands ( multiCommands )
157
154
return
158
155
}
159
156
160
157
isNewCommand ( ) && scrollResults ( 'start' )
161
158
162
- sendCommand ( commandLine , multiCommands )
159
+ sendCommand ( commands , multiCommands )
163
160
}
164
161
165
162
const sendCommand = (
You can’t perform that action at this time.
0 commit comments