Skip to content

Commit e89ce56

Browse files
committed
fix: handle orgs with no alias
1 parent 4f95931 commit e89ce56

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/commands/force/org/list.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ export class OrgListCommand extends SfdxCommand {
124124
header: '',
125125
get: (data: ExtendedAuthFields): string => data.defaultMarker ?? '',
126126
},
127-
alias: { header: 'ALIAS' },
127+
alias: {
128+
header: 'ALIAS',
129+
get: (data: ExtendedAuthFields): string => data.alias ?? '',
130+
},
128131
username: { header: 'USERNAME' },
129132
orgId: { header: 'ORG ID' },
130133
};
@@ -172,7 +175,10 @@ export class OrgListCommand extends SfdxCommand {
172175
header: '',
173176
get: (data: ExtendedAuthFields): string => data.defaultMarker ?? '',
174177
},
175-
alias: { header: 'ALIAS' },
178+
alias: {
179+
header: 'ALIAS',
180+
get: (data: ExtendedAuthFields): string => data.alias ?? '',
181+
},
176182
username: { header: 'USERNAME' },
177183
orgId: { header: 'ORG ID' },
178184
};

0 commit comments

Comments
 (0)