diff --git a/package.json b/package.json index 2bbb365..c730ea3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/shared-store.ts b/src/shared-store.ts index 6ea85e9..55180e5 100644 --- a/src/shared-store.ts +++ b/src/shared-store.ts @@ -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;