mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
Fix this.props.account null issue
This commit is contained in:
parent
6ef2b51782
commit
6713dad0af
@ -102,7 +102,7 @@ class LoginPage extends React.Component {
|
||||
}
|
||||
|
||||
if (prevProps.account !== this.props.account && this.props.account !== undefined) {
|
||||
if (this.props.account.owner === this.props.application?.organization) {
|
||||
if (this.props.account && this.props.account.owner === this.props.application?.organization) {
|
||||
const params = new URLSearchParams(this.props.location.search);
|
||||
const silentSignin = params.get("silentSignin");
|
||||
if (silentSignin !== null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user