mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	settings_users: Fix bot_list_widget not defined.
Fix error thrown when creating a bot if the bot_list_widget is not defined.
This commit is contained in:
		@@ -335,6 +335,10 @@ section.deactivated.create_table = (deactivated_users) => {
 | 
				
			|||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.update_bot_data = function (bot_user_id) {
 | 
					exports.update_bot_data = function (bot_user_id) {
 | 
				
			||||||
 | 
					    if (!bot_list_widget) {
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bot_list_widget.render_item(bot_user_id);
 | 
					    bot_list_widget.render_item(bot_user_id);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user