Fix gql Filter UnsupportedOperationException (#2063)

This commit is contained in:
schroda
2026-05-21 02:15:18 +02:00
committed by GitHub
parent 75fa4b4b23
commit 701e4674ea
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- (**Chapter**) Fix losing chapter data on failed chapter list update
- (**Chapter**) Fix database error when fetching chapter updates
- (**Manga/API**) Fix "mangas" graphql query with active sorting and using a postgresql database (QUERY "mangas")
- (**API**) Fix GraphQL `Filter` causing an UnsupportedOperationException when passing an empty list as a `Any` filter value
## [v2.2.2100] + [WebUI: v20260508.01] - 2026-05-08

View File

@@ -547,7 +547,7 @@ class OpAnd(
andPart: (T) -> Op<Boolean>,
) {
values ?: return
val expr = values.map { andPart(it) }.reduce { acc, op -> acc or op }
val expr = values.map { andPart(it) }.reduceOrNull { acc, op -> acc or op } ?: return
op = if (op == null) expr else (op!! and expr)
}