fix bug with ics import when description is nil

This commit is contained in:
Adam Piontek 2021-03-25 20:01:39 -04:00
parent 19d9b96a84
commit c79a67b345

View file

@ -109,6 +109,8 @@ defmodule Shift73kWeb.ShiftImportLive.Index do
} }
end end
defp fix_description(nil), do: nil
defp fix_description(description) do defp fix_description(description) do
description description
|> String.replace("<br>", "\r\n") |> String.replace("<br>", "\r\n")