Skip to content

Commit

Permalink
Hide conditionals from the Search view
Browse files Browse the repository at this point in the history
  • Loading branch information
fidel committed Mar 22, 2024
1 parent b560a35 commit 6ede4f8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ruby_event_store-browser/elm/src/Search.elm
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,22 @@ view model =
[ span [ class "text-gray-500 bg-gray-50 font-bold block p-1 border border-gray-300 rounded " ] [ text "ESC" ]
]
]
, if streams_ |> streamsPresent then
viewStreamList streams_

else
text ""
, viewStreamList streams_
]


viewStreamList : List Stream -> Html Msg
viewStreamList streams =
div
[]
[ ul
[ class "mt-4 overflow-auto space-y-2 w-full" ]
(List.map viewStreamListItem streams)
]
if streams |> streamsPresent then
div
[]
[ ul
[ class "mt-4 overflow-auto space-y-2 w-full" ]
(List.map viewStreamListItem streams)
]

else
text ""


viewStreamListItem : Stream -> Html Msg
Expand Down

0 comments on commit 6ede4f8

Please sign in to comment.