mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Accept incorrectly insensitivised frontpage config keys (#4237)
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user