Skip to content

Commit

Permalink
Fix result steps
Browse files Browse the repository at this point in the history
  • Loading branch information
valkjsaaa committed May 14, 2024
1 parent 1dec21b commit ee6d80b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactgenie-lib",
"version": "1.1.53",
"version": "1.1.54",
"description": "A Toolkit for Multimodal Applications",
"author": "valkjsaaa",
"license": "Apache-2.0",
Expand Down
9 changes: 5 additions & 4 deletions src/shared-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,15 @@ export function displayResult(
let displayingObject = null;
let displayingObjectType = "";

const result = executionResult.results;
const resultSteps: [{ ast: any; result: any }] =
executionResult.results[0]["steps"];
let lastResult = true;

for (let i = result.length - 1; i >= 0; i--) {
if (i != result.length - 1) {
for (let i = resultSteps.length - 1; i >= 0; i--) {
if (i != resultSteps.length - 1) {
lastResult = false;
}
const step = result[i];
const step = resultSteps[i];
allDisplayingObjects = [];
console.log(`last executed step ${JSON.stringify(step)}`);
const stepResult = step.result;
Expand Down

0 comments on commit ee6d80b

Please sign in to comment.