mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 07:57:55 +03:00 
			
		
		
		
	both statement have dupplicate bodies (#8633)
This commit is contained in:
		
							parent
							
								
									058424c16a
								
							
						
					
					
						commit
						11bfda92ba
					
				|  | @ -131,13 +131,7 @@ $(function () { | |||
|         if (value !== undefined) { | ||||
|           params[paramKey] = value | ||||
|         } | ||||
|       } else if (dataType === 'array' && paramValue) { | ||||
|         try { | ||||
|           params[paramKey] = JSON.parse(paramValue) | ||||
|         } catch (err) { | ||||
|           // Ignore malformed JSON
 | ||||
|         } | ||||
|       } else if (dataType === 'object' && paramValue) { | ||||
|       } else if ((dataType === 'array' && paramValue) || (dataType === 'object' && paramValue)) { | ||||
|         try { | ||||
|           params[paramKey] = JSON.parse(paramValue) | ||||
|         } catch (err) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user