mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 03:33:49 +08:00
Support empty application in page
This commit is contained in:
@ -790,7 +790,7 @@ class ApplicationEditPage extends React.Component {
|
||||
let signUpUrl = `/signup/${this.state.application.name}`;
|
||||
|
||||
let redirectUri;
|
||||
if (this.state.application.redirectUris.length !== 0) {
|
||||
if (this.state.application.redirectUris?.length > 0) {
|
||||
redirectUri = this.state.application.redirectUris[0];
|
||||
} else {
|
||||
redirectUri = "\"ERROR: You must specify at least one Redirect URL in 'Redirect URLs'\"";
|
||||
|
Reference in New Issue
Block a user