mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	subs: Remove incorrect expectOne() in settings_button_for_sub.
This removes an assertion added in
b6408a0383 that was only true if that
stream's edit UI was visible.
			
			
This commit is contained in:
		@@ -26,8 +26,10 @@ function row_for_stream_id(stream_id) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function settings_button_for_sub(sub) {
 | 
					function settings_button_for_sub(sub) {
 | 
				
			||||||
 | 
					    // We don't do expectOne() here, because this button is only
 | 
				
			||||||
 | 
					    // visible if the user has that stream selected in the streams UI.
 | 
				
			||||||
    var id = parseInt(sub.stream_id, 10);
 | 
					    var id = parseInt(sub.stream_id, 10);
 | 
				
			||||||
    return $(".subscription_settings[data-stream-id='" + id + "'] .subscribe-button").expectOne();
 | 
					    return $(".subscription_settings[data-stream-id='" + id + "'] .subscribe-button");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function get_row_data(row) {
 | 
					function get_row_data(row) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user