fix: fix theme switch bug (#2741)

This commit is contained in:
DacongDA
2024-02-24 16:56:12 +08:00
committed by GitHub
parent a8699d0b87
commit 13e871043c

View File

@ -69,7 +69,7 @@ export function getThemeData(organization, application) {
}
export function getAlgorithm(themeAlgorithmNames) {
return themeAlgorithmNames.map((algorithmName) => {
return themeAlgorithmNames.sort().reverse().map((algorithmName) => {
if (algorithmName === "dark") {
return theme.darkAlgorithm;
}