mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
@ -83,7 +83,7 @@ export function getAllPromptedProviderItems(application) {
|
||||
}
|
||||
|
||||
export function getSignupItem(application, itemName) {
|
||||
const signupItems = application.signupItems.filter(signupItem => signupItem.name === itemName);
|
||||
const signupItems = application.signupItems?.filter(signupItem => signupItem.name === itemName);
|
||||
if (signupItems.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
@ -402,7 +402,7 @@ class SignupPage extends React.Component {
|
||||
>
|
||||
</Form.Item>
|
||||
{
|
||||
application.signupItems.map(signupItem => this.renderFormItem(application, signupItem))
|
||||
application.signupItems?.map(signupItem => this.renderFormItem(application, signupItem))
|
||||
}
|
||||
<Form.Item {...tailFormItemLayout}>
|
||||
<Button type="primary" htmlType="submit">
|
||||
|
@ -46,6 +46,7 @@ export function updateApplication(owner, name, application) {
|
||||
|
||||
export function addApplication(application) {
|
||||
let newApplication = Setting.deepCopy(application);
|
||||
newApplication.organization = "built-in"
|
||||
return fetch(`${Setting.ServerUrl}/api/add-application`, {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
|
Reference in New Issue
Block a user