Handle case when setting value is nil
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
d5325302fa
commit
6df1b0e652
@ -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} ->
|
||||
|
Loading…
Reference in New Issue
Block a user