mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	left sidebar: Fix exception on opening all/starred popovers.
This code was added in2d414fa897, after the `window.exports` variable was removed from `stream_popovers.js`, while converting it to an ES6 module inc71af35461. This resulted in opening the starred messages or all messages popovers throw `Error: exports in undefined.`.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							7aa89289a3
						
					
				
				
					commit
					1cc6f6158e
				
			@@ -269,7 +269,7 @@ function build_all_messages_popover(e) {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    popovers.hide_all();
 | 
			
		||||
    exports.show_streamlist_sidebar();
 | 
			
		||||
    show_streamlist_sidebar();
 | 
			
		||||
 | 
			
		||||
    const content = render_all_messages_sidebar_actions();
 | 
			
		||||
 | 
			
		||||
@@ -295,7 +295,7 @@ function build_starred_messages_popover(e) {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    popovers.hide_all();
 | 
			
		||||
    exports.show_streamlist_sidebar();
 | 
			
		||||
    show_streamlist_sidebar();
 | 
			
		||||
 | 
			
		||||
    const show_unstar_all_button = starred_messages.get_count() > 0;
 | 
			
		||||
    const content = render_starred_messages_sidebar_actions({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user