From a680d2be109f6a31e3b74ac11fd7121402f6ad0c Mon Sep 17 00:00:00 2001 From: Eduardo Borsa Date: Thu, 11 Jan 2024 19:19:46 -0300 Subject: [PATCH] Remove warnings Signed-off-by: Eduardo Borsa --- lib/beacon_web/components/components.ex | 5 +++-- mix.exs | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/beacon_web/components/components.ex b/lib/beacon_web/components/components.ex index b2105e5e..ff9151d1 100644 --- a/lib/beacon_web/components/components.ex +++ b/lib/beacon_web/components/components.ex @@ -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 diff --git a/mix.exs b/mix.exs index d9162867..96d7029a 100644 --- a/mix.exs +++ b/mix.exs @@ -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() ]