Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Borsa <[email protected]>
  • Loading branch information
edborsa committed Jan 11, 2024
1 parent 354b25b commit a680d2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/beacon_web/components/components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ defmodule BeaconWeb.Components do
attr :url, :string, required: true

def embed(assigns) do
{:ok, %{html: html}} = OEmbed.for(assigns.url)
{:ok, %{html: raw_html}} = OEmbed.for(assigns.url)
assigns = Map.put(assigns, :raw_html, raw_html)

~H"""
<%= Phoenix.HTML.raw(html) %>
<%= Phoenix.HTML.raw(@raw_html) %>
"""
end

Expand Down
1 change: 0 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ defmodule Beacon.MixProject do
{:rustler, ">= 0.0.0", optional: true},
{:faker, "~> 0.17", only: :test},
{:oembed, "~> 0.4.1"},

live_monaco_editor_dep(),
mdex_dep()
]
Expand Down

0 comments on commit a680d2b

Please sign in to comment.