Skip to content

Commit 67c4122

Browse files
committed
check for self data in continue provider
1 parent 4262451 commit 67c4122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aiProviders/continue/continueContextProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class db2ContextProvider implements IContextProvider {
8787
const result = await selected.job
8888
.query<SelfCodeNode>(content)
8989
.execute(10000);
90-
if (result.success) {
90+
if (result.success && result.data) {
9191
const data: SelfCodeNode[] = result.data.map((row) => ({
9292
...row,
9393
INITIAL_STACK: this.tryParseJson(row),

0 commit comments

Comments
 (0)