Skip to content

Commit

Permalink
Fix extra page check
Browse files Browse the repository at this point in the history
  • Loading branch information
tfwright committed Jan 29, 2024
1 parent 301fd86 commit 18916e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/live_admin/components/nav.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule LiveAdmin.Components.Nav do
},
r
) && is_nil(r.metadata[:resource]) &&
!Enum.member?(["home_/admin", "session_/admin"], r.helper)
!String.match?(r.helper, ~r/(home|session)/)
end)

socket =
Expand Down

0 comments on commit 18916e8

Please sign in to comment.