From 841f6d5a243508f370ce709dfcaffb59ee8846ab Mon Sep 17 00:00:00 2001 From: Alex Shen <31595285+x4132@users.noreply.github.com> Date: Thu, 6 Mar 2025 23:14:16 -0800 Subject: [PATCH] Only recursively overwrite changes if the key exists, otherwise, just add the key into the object --- .config/ags/modules/.configuration/user_options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/modules/.configuration/user_options.js b/.config/ags/modules/.configuration/user_options.js index 6bb90255f..681aa1b99 100644 --- a/.config/ags/modules/.configuration/user_options.js +++ b/.config/ags/modules/.configuration/user_options.js @@ -242,7 +242,7 @@ let configOptions = { // Override defaults with user's options function overrideConfigRecursive(userOverrides, configOptions = {}) { for (const [key, value] of Object.entries(userOverrides)) { - if (typeof value === 'object' && !(value instanceof Array)) { + if (typeof value === 'object' && !(value instanceof Array) && configOptions[key] !== undefined) { overrideConfigRecursive(value, configOptions[key]); } else {