mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	Widgets refactor (#5817)
* widgets refactor render widgets server side widgets can use all the data the template can use * fix tests
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							65329b9bd7
						
					
				
				
					commit
					923bd86662
				
			| @@ -6,7 +6,7 @@ helpers.toMap = function (data) { | ||||
| 	var map = {}; | ||||
| 	for (var i = 0; i < data.length; i += 1) { | ||||
| 		map[data[i]._key] = data[i]; | ||||
| 		data[i]._key = undefined; | ||||
| 		delete data[i]._key; | ||||
| 	} | ||||
| 	return map; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user