Skip to content

Commit

Permalink
rm unnecessary reject (#4615)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga authored Sep 24, 2024
1 parent 09c74ee commit 0094e8a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/plausible_web/views/layout_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,12 @@ defmodule PlausibleWeb.LayoutView do
%{
key: "Shields",
icon: :shield_exclamation,
value:
[
%{key: "IP Addresses", value: "shields/ip_addresses"},
%{key: "Countries", value: "shields/countries"},
%{key: "Pages", value: "shields/pages"},
%{key: "Hostnames", value: "shields/hostnames"}
]
|> Enum.reject(&is_nil/1)
value: [
%{key: "IP Addresses", value: "shields/ip_addresses"},
%{key: "Countries", value: "shields/countries"},
%{key: "Pages", value: "shields/pages"},
%{key: "Hostnames", value: "shields/hostnames"}
]
},
%{key: "Email Reports", value: "email-reports", icon: :envelope},
if conn.assigns[:current_user_role] == :owner do
Expand Down

0 comments on commit 0094e8a

Please sign in to comment.