Skip to content

Commit

Permalink
fix: Do not throw if re-setting the login view
Browse files Browse the repository at this point in the history
Fixes #19910
  • Loading branch information
Artur- committed Sep 19, 2024
1 parent e7ac185 commit 5214dce
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ public final boolean isEnabled() {
* the Flow view to use as login view
*/
public final void setLoginView(Class<? extends Component> loginView) {
if (loginView == this.loginView) {
// Probably hot reload
return;
}
throwIfLoginViewSet();
this.loginView = loginView;
}
Expand All @@ -210,6 +214,11 @@ protected Class<? extends Component> getLoginView() {
* the frontend view to use as login view
*/
public void setLoginView(String loginUrl) {
if (loginUrl == this.loginUrl) {
// Probably hot reload
return;
}

throwIfLoginViewSet();
this.loginUrl = loginUrl;
}
Expand Down

0 comments on commit 5214dce

Please sign in to comment.