mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	js: Convert _.pluck(a, "key") to item => item.key.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							fb087c317b
						
					
				
				
					commit
					71dd495214
				
			@@ -42,7 +42,7 @@ MessageListData.prototype = {
 | 
			
		||||
        if (this._selected_id === -1) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        const ids = _.pluck(this._items, 'id');
 | 
			
		||||
        const ids = this._items.map(message => message.id);
 | 
			
		||||
 | 
			
		||||
        const i = ids.indexOf(this._selected_id);
 | 
			
		||||
        if (i === -1) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user