diff --git a/ruby_event_store-browser/elm/src/Search.elm b/ruby_event_store-browser/elm/src/Search.elm index d3d5efaeb0..a64050c6b4 100644 --- a/ruby_event_store-browser/elm/src/Search.elm +++ b/ruby_event_store-browser/elm/src/Search.elm @@ -50,11 +50,6 @@ onQueryChangedCmd onQueryMsg stream = Task.perform onQueryMsg (Task.succeed stream) -isExactStream : Stream -> List Stream -> Bool -isExactStream stream streams = - List.any ((==) stream) streams - - hasAtLeastThreeChars : Stream -> Bool hasAtLeastThreeChars stream = String.length stream >= 3 @@ -64,12 +59,7 @@ update : Msg -> Model a -> ( Model a, Cmd a ) update msg model = case msg of StreamChanged stream -> - if isExactStream stream model.streams then - ( { model | value = emptyStreamName } - , onSelectCmd model.onSelectMsg stream - ) - - else if hasAtLeastThreeChars stream then + if hasAtLeastThreeChars stream then ( { model | value = stream } , onQueryChangedCmd model.onQueryMsg stream )