mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-04-10 13:40:29 +02:00
Fix errors in Updater
This commit is contained in:
parent
ebd4045503
commit
3dadcb0ee1
2 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ export class EditDictionaryModal extends Component {
|
||||||
.map((value) => { return value.trim() });
|
.map((value) => { return value.trim() });
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(updatedDetails);
|
// console.log(updatedDetails);
|
||||||
|
|
||||||
this.props.updater.updateDictionaryDetails(updatedDetails)
|
this.props.updater.updateDictionaryDetails(updatedDetails)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class Updater {
|
||||||
|
|
||||||
if (dicitonaryDetails.specification) {
|
if (dicitonaryDetails.specification) {
|
||||||
updatedDetails['specification'] = dicitonaryDetails.specification;
|
updatedDetails['specification'] = dicitonaryDetails.specification;
|
||||||
this.dicitonary.specification = dicitonaryDetails.specification;
|
this.dictionary.specification = dicitonaryDetails.specification;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dicitonaryDetails.description) {
|
if (dicitonaryDetails.description) {
|
||||||
|
@ -46,7 +46,7 @@ export class Updater {
|
||||||
this.dictionary.partsOfSpeech = dicitonaryDetails.partsOfSpeech;
|
this.dictionary.partsOfSpeech = dicitonaryDetails.partsOfSpeech;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (helper.objectIsEmpty(updatedDetails)) {
|
if (updatedDetails.isEmpty()) {
|
||||||
reject('No dictionary details have changed.');
|
reject('No dictionary details have changed.');
|
||||||
} else {
|
} else {
|
||||||
this.app.setState(updatedDetails, () => {
|
this.app.setState(updatedDetails, () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue