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
defp fix_description(nil), do: nil
defp fix_description(description) do
description
|> String.replace("<br>", "\r\n")