Skip to content

Commit 28daffc

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/frameworks-backends-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const command = new Command("backends:list")
4848
});
4949

5050
function populateTable(backendsLists: gcp.ListBackendsResponse, location: string, table: any) {
51-
for (const backend of backendsLists.backends) {
51+
for (const backend of backendsLists.backends ?? []) {
5252
const [location, , backendId] = backend.name.split("/").slice(3, 6);
5353
const entry = [
5454
backendId,

0 commit comments

Comments
 (0)