Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał committed Oct 21, 2024
1 parent 8b6cd3c commit f2ea852
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).


## Learn more

- Official website: https://www.phoenixframework.org/
Expand Down
1 change: 1 addition & 0 deletions apps/api/lib/buildel/blocks/browser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ defmodule Buildel.Blocks.Browser do
end

defp url(url, state) do
url = url |> String.trim()
state = send_stream_start(state)

uri = URI.parse(url)
Expand Down
2 changes: 2 additions & 0 deletions apps/api/lib/buildel/blocks/document_search.ex
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ defmodule Buildel.Blocks.DocumentSearch do
result
|> Enum.map(&DocumentSearchJSON.show(&1))
|> Jason.encode!()
rescue
_ -> "Could not return record"
end

defp do_parent(state, chunk_id) do
Expand Down

0 comments on commit f2ea852

Please sign in to comment.