We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df599c3 commit 7eb7516Copy full SHA for 7eb7516
lib/algora_web/live/org/dashboard_live.ex
@@ -48,7 +48,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
48
defp get_previewed_user(%{last_context: "repo/" <> repo} = current_org) do
49
case String.split(repo, "/") do
50
[repo_owner, _repo_name] ->
51
- Repo.one(from u in User, where: u.provider_login == ^repo_owner and not is_nil(u.handle))
+ Repo.one(from u in User, where: u.provider_login == ^repo_owner and not is_nil(u.handle)) || current_org
52
53
_ ->
54
current_org
0 commit comments