Handle case when setting value is nil

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-08 08:19:59 +02:00
parent ebaa9154ee
commit fbb1b2d607
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ defmodule Mobilizon.Admin do
end
end
def get_setting_value(nil), do: nil
def get_setting_value(value) do
case Jason.decode(value) do
{:ok, val} ->