omits undefined values from listConfig
This commit is contained in:
parent
5c885eaa1a
commit
e4495798ee
|
@ -72,6 +72,11 @@ export function listConfig(): Record<string, string> {
|
|||
const result: Record<string, string> = {};
|
||||
for (const key of getKeys(config)) {
|
||||
const value = config[key]?.toString() || "";
|
||||
|
||||
if (value === "" || value === "undefined") {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (value && SENSITIVE_KEYS.includes(key)) {
|
||||
result[key] = "********";
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue