Skip to content

Commit

Permalink
fix for step description appearing undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
dakshbhardwaj committed Aug 7, 2024
1 parent 925928c commit 03ce281
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sirji/vscode-extension/src/views/chat/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,10 @@ function displayPlannedSteps(steps) {
listElement.appendChild(headerItem);

header[fileName].forEach((stepObj, index) => {
const stepDescription = stepObj[`step_${index + 1}`];
const stepKey = `step_${index + 1}`;
const numberedKey = `${index + 1}`;

const stepDescription = stepObj[stepKey] || stepObj[numberedKey] || '';
const stepStatus = stepObj.status;

const listItem = document.createElement('li');
Expand Down

0 comments on commit 03ce281

Please sign in to comment.