Skip to content

Commit

Permalink
fix: Do not throw if re-setting the login view (#19996)
Browse files Browse the repository at this point in the history
Fixes #19910
  • Loading branch information
Artur- authored Sep 20, 2024
1 parent e74393c commit 5319304
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 5319304

Please sign in to comment.