From 3dadcb0ee16cb32631c4828a1eaee91b75c68295 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sun, 20 Aug 2017 12:31:04 -0600 Subject: [PATCH] Fix errors in Updater --- src/components/management/EditDictionaryModal/index.jsx | 2 +- src/managers/Updater.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/management/EditDictionaryModal/index.jsx b/src/components/management/EditDictionaryModal/index.jsx index d7a5601..8a83d71 100644 --- a/src/components/management/EditDictionaryModal/index.jsx +++ b/src/components/management/EditDictionaryModal/index.jsx @@ -110,7 +110,7 @@ export class EditDictionaryModal extends Component { .map((value) => { return value.trim() }); } - console.log(updatedDetails); + // console.log(updatedDetails); this.props.updater.updateDictionaryDetails(updatedDetails) .then(() => { diff --git a/src/managers/Updater.js b/src/managers/Updater.js index 3654202..9a9f34e 100644 --- a/src/managers/Updater.js +++ b/src/managers/Updater.js @@ -33,7 +33,7 @@ export class Updater { if (dicitonaryDetails.specification) { updatedDetails['specification'] = dicitonaryDetails.specification; - this.dicitonary.specification = dicitonaryDetails.specification; + this.dictionary.specification = dicitonaryDetails.specification; } if (dicitonaryDetails.description) { @@ -46,7 +46,7 @@ export class Updater { this.dictionary.partsOfSpeech = dicitonaryDetails.partsOfSpeech; } - if (helper.objectIsEmpty(updatedDetails)) { + if (updatedDetails.isEmpty()) { reject('No dictionary details have changed.'); } else { this.app.setState(updatedDetails, () => {