Fix additional categories not showing up correctly (#855)

This commit is contained in:
Geometrically
2024-01-13 20:19:45 -05:00
committed by GitHub
parent bfeff78164
commit 2a63b703f9

View File

@@ -268,10 +268,11 @@ pub async fn index_local(pool: &PgPool) -> Result<Vec<UploadSearchProject>, Inde
let mut vals = Vec::new();
let mut featured_vals = Vec::new();
for (val, featured) in categories {
if featured {
for (val, is_additional) in categories {
if !is_additional {
featured_vals.push(val.clone());
}
vals.push(val);
}