Correct bug with search link when no movies are found
parent
ae8cda3791
commit
2b347bb7e6
|
@ -72,7 +72,7 @@ module Librarix
|
||||||
end
|
end
|
||||||
|
|
||||||
def maybe_search?
|
def maybe_search?
|
||||||
movies.empty? && params.key?('title')
|
movies.all? { |k,v| v.empty? } && params.key?('title')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue