From ddafd21706c4cfd1aa9a4241f6f42c4ea39d1664 Mon Sep 17 00:00:00 2001 From: Leigh Date: Wed, 4 Aug 2021 19:33:54 +0200 Subject: [PATCH] Fixes #1579 Exception when browsing to /login when you are already logged in Added PageState.User check --- Oqtane.Client/Modules/Admin/Login/Index.razor | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Oqtane.Client/Modules/Admin/Login/Index.razor b/Oqtane.Client/Modules/Admin/Login/Index.razor index 868031fd..70ff6b13 100644 --- a/Oqtane.Client/Modules/Admin/Login/Index.razor +++ b/Oqtane.Client/Modules/Admin/Login/Index.razor @@ -98,7 +98,10 @@ { if (firstRender) { - await username.FocusAsync(); + if(PageState.User == null) + { + await username.FocusAsync(); + } } }