mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-11-04 02:07:05 +01: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() });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    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…
	
	Add table
		
		Reference in a new issue