From 93352cca3ed1a27db16f9cb6f6e467c0dc0c672d Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 18 Jan 2026 01:11:07 +0100 Subject: [PATCH] fix active categories when inpropperly configured --- backend/src/graphql/resolvers/posts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/graphql/resolvers/posts.ts b/backend/src/graphql/resolvers/posts.ts index af807b041..7d419fcbb 100644 --- a/backend/src/graphql/resolvers/posts.ts +++ b/backend/src/graphql/resolvers/posts.ts @@ -154,7 +154,7 @@ export default { )` } const categoriesCypher = - config.CATEGORIES_ACTIVE && categoryIds + config.CATEGORIES_ACTIVE && categoryIds && categoryIds.length > 0 ? `WITH post UNWIND $categoryIds AS categoryId MATCH (category:Category {id: categoryId})