Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e1930e1

Browse files
committedJan 16, 2021
Few small improvements
1 parent 9bec66b commit e1930e1

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
 

‎src/Page/Options.elm

+3-4
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ viewSuccess :
136136
-> Html Msg
137137
viewSuccess channel showNixOSDetails show hits =
138138
ul []
139-
(List.concatMap
139+
(List.map
140140
(viewResultItem channel showNixOSDetails show)
141141
hits
142142
)
@@ -147,7 +147,7 @@ viewResultItem :
147147
-> Bool
148148
-> Maybe String
149149
-> Search.ResultItem ResultItemSource
150-
-> List (Html Msg)
150+
-> Html Msg
151151
viewResultItem channel _ show item =
152152
let
153153
showHtml value =
@@ -230,7 +230,7 @@ viewResultItem channel _ show item =
230230
open =
231231
SearchMsg (Search.ShowDetails item.source.name)
232232
in
233-
[ li
233+
li
234234
[ class "option"
235235
, onClick open
236236
, Search.elementId item.source.name
@@ -247,7 +247,6 @@ viewResultItem channel _ show item =
247247
[ text item.source.name ]
248248
]
249249
)
250-
]
251250

252251

253252

‎src/Page/Packages.elm

+3-4
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ viewSuccess :
291291
-> Html Msg
292292
viewSuccess channel showNixOSDetails show hits =
293293
ul []
294-
(List.concatMap
294+
(List.map
295295
(viewResultItem channel showNixOSDetails show)
296296
hits
297297
)
@@ -302,7 +302,7 @@ viewResultItem :
302302
-> Bool
303303
-> Maybe String
304304
-> Search.ResultItem ResultItemSource
305-
-> List (Html Msg)
305+
-> Html Msg
306306
viewResultItem channel showNixOSDetails show item =
307307
let
308308
cleanPosition =
@@ -516,7 +516,7 @@ viewResultItem channel showNixOSDetails show item =
516516
open =
517517
SearchMsg (Search.ShowDetails item.source.attr_name)
518518
in
519-
[ li
519+
li
520520
[ class "package"
521521
, onClick open
522522
, Search.elementId item.source.attr_name
@@ -531,7 +531,6 @@ viewResultItem channel showNixOSDetails show item =
531531
, shortPackageDetails
532532
]
533533
)
534-
]
535534

536535

537536

0 commit comments

Comments
 (0)
Please sign in to comment.