Skip to content

Commit e08c49d

Browse files
Merge master into feature/serverlessland
2 parents 302b142 + 367350e commit e08c49d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/src/codewhisperer/service/transformByQ/transformApiHandler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ export function addTableMarkdown(plan: string, stepId: string, tableMapping: { [
506506
return plan
507507
}
508508
const table = JSON.parse(tableObj)
509+
if (table.rows.length === 0) {
510+
// empty table
511+
plan += `\n\nThere are no ${table.name.toLowerCase()} to display.\n\n`
512+
return plan
513+
}
509514
plan += `\n\n\n${table.name}\n|`
510515
const columns = table.columnNames
511516
// eslint-disable-next-line unicorn/no-array-for-each

0 commit comments

Comments
 (0)