From 096cb1ba3e24b7aefc884c5a4bb734e0d0d53f00 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Fri, 26 Sep 2025 12:04:21 -0700 Subject: [PATCH] fix(config): using set with undefined --- lib/commands/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/config.ts b/lib/commands/config.ts index 83f4c8369c..8689880fcd 100644 --- a/lib/commands/config.ts +++ b/lib/commands/config.ts @@ -91,7 +91,8 @@ export class ConfigSetCommand implements ICommand { const convertedValue = this.getConvertedValue(value); const existingKey = current !== undefined; const keyDisplay = color.green(key); - const currentDisplay = color.yellow(current); + // when current is undefined, return empty string to avoid throw + const currentDisplay = current ? color.yellow(current) : ""; const updatedDisplay = color.cyan(convertedValue); this.$logger.info(