Skip to content

Commit ae02cd3

Browse files
committed
fix: Coerce server_settings to []
1 parent 3a82180 commit ae02cd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/octocon/accounts.ex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ defmodule Octocon.Accounts do
665665
|> Map.from_struct()
666666
|> Map.put(
667667
:server_settings,
668-
Map.get(settings, :server_settings)
668+
(Map.get(settings, :server_settings) || [])
669669
|> Enum.map(&Map.from_struct/1)
670670
)
671671

0 commit comments

Comments
 (0)