Skip to content

Commit

Permalink
Fix: Cannot create apps (#470)
Browse files Browse the repository at this point in the history
* #454 refactoring, save wip

* #454 fix tests

* #454 remove unused variables

* #454 fix bugs

* #454 fix missing variable

* #454 review fixes

* #454 remove unnecessary semicolon

* #454 add missing production environment variable

* #469 add applicationIds prop to applicationform
  • Loading branch information
prayerslayer committed Jun 17, 2016
1 parent ea15959 commit c5fc5d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ class ApplicationForm extends React.Component {
ApplicationForm.displayName = 'ApplicationForm';
ApplicationForm.propTypes = {
applicationId: React.PropTypes.string,
edit: React.PropTypes.bool,
edit: React.PropTypes.bool.isRequired,
userTeams: React.PropTypes.array.isRequired,
application: React.PropTypes.object.isRequired,
application: React.PropTypes.object,
applicationIds: React.PropTypes.array.isRequired,
kioActions: React.PropTypes.object.isRequired,
notificationActions: React.PropTypes.object.isRequired
Expand Down
7 changes: 4 additions & 3 deletions client/lib/application/src/router.react.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,14 @@ class CreateAppFormHandler extends React.Component {
}

render() {
const userTeams = this.props.userStore.getUserTeams();
const userTeams = this.props.userStore.getUserTeams().map(t => t.id),
applicationIds = this.props.kioStore.getApplications().map(a => a.id);
return <ApplicationForm
edit={false}
userTeams={userTeams}
applicationIds={applicationIds}
notificationActions={NOTIFICATION_ACTIONS}
kioActions={KIO_ACTIONS}
{...this.props} />;
kioActions={KIO_ACTIONS} />;
}
}
CreateAppFormHandler.displayName = 'CreateAppFormHandler';
Expand Down

0 comments on commit c5fc5d5

Please sign in to comment.