Fix errors in Updater
This commit is contained in:
parent
ebd4045503
commit
3dadcb0ee1
|
@ -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(() => {
|
||||
|
|
|
@ -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, () => {
|
||||
|
|
Loading…
Reference in New Issue