We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2eb5f3 commit aedb50aCopy full SHA for aedb50a
src/Lib/MultiSearch.elm
@@ -304,10 +304,16 @@ length s =
304
Nothing
305
306
Searching s_ ->
307
+ let
308
+ sum list acc =
309
+ list
310
+ |> RemoteData.map List.length
311
+ |> RemoteData.withDefault 0
312
+ |> (+) acc
313
+ in
314
s_.requests
- |> Dict.toList
- |> List.map (Tuple.second >> RemoteData.map List.length >> RemoteData.withDefault 0)
- |> List.sum
315
+ |> Dict.values
316
+ |> List.foldl sum 0
317
|> Just
318
319
Success _ r ->
0 commit comments