Accept incorrectly insensitivised frontpage config keys (#4237)

This commit is contained in:
DingDongSoLong4
2023-10-26 06:01:11 +02:00
committed by GitHub
parent 298f3d4e19
commit c4d7a7ab2c
4 changed files with 55 additions and 15 deletions

View File

@@ -15,6 +15,7 @@ import {
ICustomFilter,
FrontPageContent,
generatePremadeFrontPageContent,
getFrontPageContent,
} from "src/core/config";
interface IAddSavedFilterModalProps {
@@ -299,8 +300,9 @@ export const FrontPageConfig: React.FC<IFrontPageConfigProps> = ({
return;
}
if (ui?.frontPageContent) {
setCurrentContent(ui.frontPageContent);
const frontPageContent = getFrontPageContent(ui);
if (frontPageContent) {
setCurrentContent(frontPageContent);
}
}, [allFilters, ui]);