From f3185cfbc6904bd7ee6068efde0053b66810901d Mon Sep 17 00:00:00 2001 From: ptlthg <24925519+ptlthg@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:36:20 -0400 Subject: [PATCH] Populate missing sub object properties in credentials --- src/credentials.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/credentials.js b/src/credentials.js index 1d431a30f1..9f0b1d152c 100644 --- a/src/credentials.js +++ b/src/credentials.js @@ -56,6 +56,15 @@ for (const key in defaultCredentials) { CREDENTIALS[key] = defaultCredentials[key]; hasBeenModified = true; } + + if (typeof defaultCredentials[key] === "object") { + for (const subKey in defaultCredentials[key]) { + if (CREDENTIALS[key][subKey] == undefined) { + CREDENTIALS[key][subKey] = defaultCredentials[key][subKey]; + hasBeenModified = true; + } + } + } } if (hasBeenModified) {