diff --git a/assets/js/Components/Admin/UsersPage.js b/assets/js/Components/Admin/UsersPage.js index 3df5dd45..8648f3f6 100644 --- a/assets/js/Components/Admin/UsersPage.js +++ b/assets/js/Components/Admin/UsersPage.js @@ -162,7 +162,6 @@ class UsersPage extends React.Component { .then((responseStr) => responseStr.json()) .then((response) => { let users = this.state.users - console.log('response', response); if (response && response.id) { const ind = users.findIndex((el) => { el.id === response.id }) users[ind] = response @@ -183,4 +182,4 @@ class UsersPage extends React.Component { } } -export default UsersPage; \ No newline at end of file +export default UsersPage; diff --git a/assets/js/Components/App.js b/assets/js/Components/App.js index 9b4bab36..e6b8f64d 100644 --- a/assets/js/Components/App.js +++ b/assets/js/Components/App.js @@ -201,7 +201,6 @@ class App extends React.Component { }); } if (data.data && data.data.id) { - console.log('new data', data.data) report = data.data hasNewReport = true } diff --git a/assets/js/Components/Forms/HeadingEmptyForm.js b/assets/js/Components/Forms/HeadingEmptyForm.js index 13cc1342..0df72472 100644 --- a/assets/js/Components/Forms/HeadingEmptyForm.js +++ b/assets/js/Components/Forms/HeadingEmptyForm.js @@ -78,17 +78,15 @@ export default class HeadingEmptyForm extends React.Component { if(!this.state.deleteHeader) { this.checkTextNotEmpty() } - if (this.formErrors.length > 0) { this.setState({ textInputErrors: this.formErrors }) - } - + } + else { this.setState({ textInputErrors: []}) let issue = this.props.activeIssue issue.newHtml = this.processHtml() - console.log(issue.newHtml) this.props.handleIssueSave(issue) } } diff --git a/assets/js/Components/Forms/TableHeaders.js b/assets/js/Components/Forms/TableHeaders.js index c18bcc3d..bcc47eee 100644 --- a/assets/js/Components/Forms/TableHeaders.js +++ b/assets/js/Components/Forms/TableHeaders.js @@ -46,7 +46,6 @@ export default class TableHeaders extends React.Component { } handleSubmit() { - console.log('activeIssue', this.props.activeIssue) let issue = this.props.activeIssue issue.newHtml = this.fixHeaders() this.props.handleIssueSave(issue) diff --git a/assets/js/Services/Html.js b/assets/js/Services/Html.js index 436d6451..e8c59ffd 100644 --- a/assets/js/Services/Html.js +++ b/assets/js/Services/Html.js @@ -37,8 +37,6 @@ export function setInnerText(element, newText) { const children = element.childNodes let textNodeFound = false - console.log(children) - children.forEach(node => { if(node.nodeType === Node.TEXT_NODE) { if(textNodeFound != true) { diff --git a/assets/js/getInitialData.js b/assets/js/getInitialData.js index c9deca9e..107f76fb 100644 --- a/assets/js/getInitialData.js +++ b/assets/js/getInitialData.js @@ -16,7 +16,7 @@ export default function getInitialData() { data = JSON.parse(settingsElement.textContent) if (Object.keys(data).length > 0) { - console.log('data', data) + console.log('Data was found and loaded!') } else { console.error('No data loaded!') }