diff --git a/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex b/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex
index 372fe56..e2442c6 100644
--- a/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex
+++ b/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex
@@ -43,7 +43,7 @@
-
+
<.break_on_newline text={@media_item.description} />
diff --git a/test/pinchflat_web/controllers/media_item_controller_test.exs b/test/pinchflat_web/controllers/media_item_controller_test.exs
index 477e524..4070938 100644
--- a/test/pinchflat_web/controllers/media_item_controller_test.exs
+++ b/test/pinchflat_web/controllers/media_item_controller_test.exs
@@ -14,6 +14,13 @@ defmodule PinchflatWeb.MediaItemControllerTest do
assert html_response(conn, 200) =~ "#{media_item.title}"
end
+
+ test "renders the page when the media item has no description", %{conn: conn} do
+ media_item = media_item_with_attachments(%{description: nil})
+ conn = get(conn, ~p"/sources/#{media_item.source_id}/media/#{media_item}")
+
+ assert html_response(conn, 200) =~ "#{media_item.title}"
+ end
end
describe "edit media" do