forked from CIT/Vmeda.Online
		
	MOBILE-2838 site: Fix checking whether no response is expected
This commit is contained in:
		
							parent
							
								
									c682ff8673
								
							
						
					
					
						commit
						44eb98da3e
					
				| @ -866,7 +866,8 @@ export class CoreSite { | |||||||
|                 } else { |                 } else { | ||||||
|                     let responseData = this.textUtils.parseJSON(response.data); |                     let responseData = this.textUtils.parseJSON(response.data); | ||||||
|                     // Match the behaviour of CoreWSProvider.call when no response is expected.
 |                     // Match the behaviour of CoreWSProvider.call when no response is expected.
 | ||||||
|                     if (!responseData && (typeof wsPresets.responseExpected == 'undefined' || wsPresets.responseExpected)) { |                     const responseExpected = typeof wsPresets.responseExpected == 'undefined' || wsPresets.responseExpected; | ||||||
|  |                     if (!responseExpected && (responseData == null || responseData === '')) { | ||||||
|                         responseData = {}; |                         responseData = {}; | ||||||
|                     } |                     } | ||||||
|                     request.deferred.resolve(responseData); |                     request.deferred.resolve(responseData); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user