diff --git a/assets/js/Components/App.js b/assets/js/Components/App.js index 03fd049f..b4873b5b 100644 --- a/assets/js/Components/App.js +++ b/assets/js/Components/App.js @@ -219,13 +219,13 @@ class App extends React.Component { handleIssueSave(newIssue, newReport) { const oldReport = this.state.report; - const report = {...oldReport, ...newReport}; + const report = { ...oldReport, ...newReport }; if (report && Array.isArray(report.issues)) { // Combine backend issues with frontend issue state report.issues = report.issues.map((issue) => { if (issue.id === newIssue.id) return newIssue; - const oldIssue = oldReport.issues.find(oldReportIssue => oldReportIssue.id === issue.id); + const oldIssue = oldReport.issues.find((oldReportIssue) => oldReportIssue.id === issue.id); return oldIssue !== undefined ? { ...oldIssue, ...issue } : issue; }); } diff --git a/assets/js/Components/ContentPage.js b/assets/js/Components/ContentPage.js index 410bbb43..8c4bad46 100644 --- a/assets/js/Components/ContentPage.js +++ b/assets/js/Components/ContentPage.js @@ -103,7 +103,7 @@ class ContentPage extends React.Component { handleCloseButton = () => { const newReport = { ...this.props.report }; - newReport.issues = newReport.issues.map(issue => { + newReport.issues = newReport.issues.map((issue) => { issue.recentlyResolved = false; issue.recentlyUpdated = false; return issue;