feat: filter out non-existent questions on frontpage
This commit is contained in:
parent
34cfa31fe9
commit
38d666fec0
|
@ -9,7 +9,9 @@ export async function getFrontpage(): Promise<Question[]> {
|
|||
question: true,
|
||||
},
|
||||
})
|
||||
).map((f) => f.question);
|
||||
)
|
||||
.map((f) => f.question)
|
||||
.filter((q) => q);
|
||||
return questions;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user