Skip to content

Commit

Permalink
Fix bugs ibutsu#78 and ibutsu#79
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnyman committed Oct 27, 2020
1 parent ffee728 commit 75f0f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/ibutsu_server/controllers/report_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def add_report(report_parameters=None):
"created": datetime.utcnow(),
}
if "project" in report_parameters:
report_dict.project_id = get_project_id(report_parameters["project"])
report_dict["project_id"] = get_project_id(report_parameters["project"])

report = Report.from_dict(**report_dict)
session.add(report)
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/report-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ export class ReportBuilder extends React.Component {
});
}

onHelpToggle = (event) => {
event.preventDefault();
onHelpToggle = () => {
this.setState({isHelpExpanded: !this.state.isHelpExpanded});
};

Expand Down

0 comments on commit 75f0f78

Please sign in to comment.