We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53defb3 commit 74cc879Copy full SHA for 74cc879
src/commands/switch/switch.js
@@ -12,7 +12,7 @@ const LOGIN_NEW = 'I would like to login to a new account'
12
* @param {import('../base-command').BaseCommand} command
13
*/
14
const switchCommand = async (options, command) => {
15
- const availableUsersChoices = Object.values(command.netlify.globalConfig.get('users')).reduce(
+ const availableUsersChoices = Object.values(command.netlify.globalConfig.get('users') || {}).reduce(
16
(prev, current) =>
17
Object.assign(prev, { [current.id]: current.name ? `${current.name} (${current.email})` : current.email }),
18
{},
0 commit comments