Skip to content

Commit b22d8ee

Browse files
committed
Fix tiny bug where list command failed when given no backend resources.
1 parent c031540 commit b22d8ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/frameworks-backends-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export const command = new Command("backends:list")
2727
style: { head: ["green"] },
2828
});
2929
table.colWidths = COLUMN_LENGTH;
30-
const backendsList: gcp.ListBackendsResponse[] = [];
30+
const backendsList: gcp.ListBackendsResponse["backends"] = [];
3131
try {
3232
const backendsPerRegion = await gcp.listBackends(projectId, location);
33-
backendsList.push(backendsPerRegion);
33+
backendsList.push(...backendsPerRegion.backends);
3434
populateTable(backendsPerRegion, location, table);
3535

3636
logger.info();

0 commit comments

Comments
 (0)