Skip to content

Commit

Permalink
Remove unused prop (Graylog2#4731)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundoa authored and bernd committed Apr 17, 2018
1 parent 3be835b commit f2dadd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const DashboardList = createReactClass({

propTypes: {
dashboards: ImmutablePropTypes.list,
onDashboardAdd: PropTypes.func,
permissions: PropTypes.arrayOf(PropTypes.string),
},

Expand All @@ -32,8 +31,7 @@ const DashboardList = createReactClass({
if (this.isPermitted(this.props.permissions, ['dashboards:create'])) {
createDashboardButton = (
<span>
<EditDashboardModalTrigger action="create" buttonClass="btn-link btn-text"
onSaved={this.props.onDashboardAdd}>
<EditDashboardModalTrigger action="create" buttonClass="btn-link btn-text">
Create one now
</EditDashboardModalTrigger>
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const DashboardListPage = createReactClass({
} else {
dashboardList = (
<DashboardList dashboards={filteredDashboards}
onDashboardAdd={this._onDashboardAdd}
permissions={this.props.permissions}/>
);
}
Expand Down

0 comments on commit f2dadd9

Please sign in to comment.