forked from MapComplete/MapComplete
		
	Small optimazations
This commit is contained in:
		
							parent
							
								
									cc22c5b0fb
								
							
						
					
					
						commit
						5cc963513a
					
				
					 4 changed files with 7 additions and 3 deletions
				
			
		|  | @ -265,7 +265,7 @@ export class Changes { | |||
|                 console.log("No changes to be made") | ||||
|                 this.pendingChanges.setData([]) | ||||
|                 this.isUploading.setData(false) | ||||
|                 return; | ||||
|                 return true; // Unregister the callback
 | ||||
|             } | ||||
| 
 | ||||
| 
 | ||||
|  | @ -280,6 +280,7 @@ export class Changes { | |||
|                 }, | ||||
|                 () => self.isUploading.setData(false) // Failed - mark to try again
 | ||||
|             ) | ||||
|             return true; | ||||
| 
 | ||||
|         }); | ||||
| 
 | ||||
|  |  | |||
|  | @ -53,6 +53,9 @@ export class ChangesetHandler { | |||
|                 element.ping(); | ||||
| 
 | ||||
|             } | ||||
| 
 | ||||
|             const newVersion = parseInt(node.attributes.new_id.value); | ||||
| 
 | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
|  | @ -184,7 +184,7 @@ export class UIEventSource<T> { | |||
|     addCallbackAndRunD(callback: (data: T) => void) { | ||||
|         this.addCallbackAndRun(data => { | ||||
|             if (data !== undefined && data !== null) { | ||||
|                 callback(data) | ||||
|               return  callback(data) | ||||
|             } | ||||
|         }) | ||||
|     } | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ import { Utils } from "../Utils"; | |||
| 
 | ||||
| export default class Constants { | ||||
|      | ||||
|     public static vNumber = "0.8.5-rc1"; | ||||
|     public static vNumber = "0.8.5-rc2"; | ||||
| 
 | ||||
|     // The user journey states thresholds when a new feature gets unlocked
 | ||||
|     public static userJourney = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue