Ensure empty array is returned for tags

This commit is contained in:
Maxim Filippov 2019-03-14 03:17:09 +03:00
parent 257d8e78e5
commit f3964f4024

View file

@ -23,7 +23,7 @@ def render("show.json", %{user: user}) do
"deactivated" => user.info.deactivated,
"local" => user.local,
"roles" => Info.roles(user.info),
"tags" => user.tags
"tags" => user.tags || []
}
end
end