Do not read in the "theme" setting at the project level (#3845)

* Do not read in the "theme" setting at the project level

* Add a couple unit tests
This commit is contained in:
Frank Noirot
2024-09-10 15:15:20 -04:00
committed by GitHub
parent 900bac999c
commit f9eef6397f
2 changed files with 68 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export function projectConfigurationToSettingsPayload(
): DeepPartial<SaveSettingsPayload> {
return {
app: {
theme: appThemeToTheme(configuration?.settings?.app?.appearance?.theme),
// do not read in `theme`, because it is blocked on the project level
themeColor: configuration?.settings?.app?.appearance?.color
? configuration?.settings?.app?.appearance?.color.toString()
: undefined,