add pagespeed to intialstate and handler in settingsslice

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-05-06 16:45:48 -04:00
1 parent b493b5e0e5
commit 85c3a16f41
2 files changed
+7 -8

No files matched your search

+5 -8
View File
@@ -48,14 +48,11 @@ class SettingsService {
// If there are any settings that weren't set by environment variables, use user settings from DB
for (const key in envConfig) {
const envValue = envConfig[key];
const dbValue = dbSettings?.[key];
if (envValue === undefined || envValue === "") {
if (dbValue !== undefined) {
this.settings[key] = dbValue;
}
if (
typeof envConfig?.[key] === "undefined" &&
typeof dbSettings?.[key] !== "undefined"
) {
this.settings[key] = dbSettings[key];
}
}