Hide tools from homepage that have isHidden flag

This commit is contained in:
fabioberger
2019-08-28 20:31:15 +02:00
parent dfd46d68ac
commit 077d001b42

View File

@@ -71,7 +71,7 @@ const Hits: React.FC<IHitsProps> = ({ hits }) => {
)}
{contentTypes.map(type => {
const filteredHits = hits.filter((hit: any) => hit.type === type);
const filteredHits = hits.filter((hit: any) => hit.type === type && !hit.isHidden);
const sortedHits = _.orderBy(filteredHits, ['isCommunity', 'title'], ['asc', 'asc']);
return (