From 6713dad0afdf68c5b639165fdbac465796606a16 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Fri, 27 Oct 2023 02:13:23 +0800 Subject: [PATCH] Fix this.props.account null issue --- web/src/auth/LoginPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index ba22523c..c0f7b3ee 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -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) {