mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-01 09:54:34 -05:00
Fix gql Filter UnsupportedOperationException (#2063)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user