Fix props availability check when listing stats filters in dropdown (#3671)

This commit is contained in:
Adrian Gruntkowski 2024-01-08 11:47:09 +01:00 committed by GitHub
parent dc8210dd84
commit 1021942863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ function DropdownContent({ history, site, query, wrapped }) {
if (wrapped === 0 || addingFilter) {
let filterGroups = {...FILTER_GROUPS}
if (!site.propsEnabled) delete filterGroups.props
if (!site.propsAvailable) delete filterGroups.props
return Object.keys(filterGroups).map((option) => filterDropdownOption(site, option))
}