Skip to content

Commit

Permalink
fix(notebook): jsonPath using restQuery data
Browse files Browse the repository at this point in the history
and not the extracted msgs.
Now this is consistent with the fishbone evaluation itself.
  • Loading branch information
mbehr1 committed Oct 5, 2023
1 parent f1d0ca4 commit dcb583d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/fbaNBRQRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ export class FBANBRestQueryRenderer {

let jpResult: any[] | undefined
if (jsonPath.length > 0) {
jpResult = jp.query({ ...resJson, data: msgs }, jsonPath) // we reduce msgs here to 5
jpResult = jp.query({ ...resJson, data: resJson.data.slice(0, 5) }, jsonPath)
appendMarkdown(exec, [
{
open: convFunction.length === 0,
Expand Down

0 comments on commit dcb583d

Please sign in to comment.