File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
views/jobManager/selfCodes Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export class db2ContextProvider implements IContextProvider {
87
87
const result = await selected . job
88
88
. query < SelfCodeNode > ( content )
89
89
. execute ( 10000 ) ;
90
- if ( result . success ) {
90
+ if ( result . success && result . data ) {
91
91
const data : SelfCodeNode [ ] = result . data . map ( ( row ) => ( {
92
92
...row ,
93
93
INITIAL_STACK : this . tryParseJson ( row ) ,
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export class selfCodesResultsView implements TreeDataProvider<any> {
145
145
146
146
try {
147
147
const result = await selected . job . query < SelfCodeNode > ( content ) . execute ( 10000 ) ;
148
- if ( result . success ) {
148
+ if ( result . success && result . data ) {
149
149
const data : SelfCodeNode [ ] = result . data . map ( ( row ) => ( {
150
150
...row ,
151
151
INITIAL_STACK : JSON . parse ( row . INITIAL_STACK as unknown as string )
You can’t perform that action at this time.
0 commit comments