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:
Clara Dantas
2020-05-29 15:47:16 -03:00
committed by Tim Abbott
parent b33aa8da7f
commit 080014abcc

View File

@@ -335,6 +335,10 @@ section.deactivated.create_table = (deactivated_users) => {
};
exports.update_bot_data = function (bot_user_id) {
if (!bot_list_widget) {
return;
}
bot_list_widget.render_item(bot_user_id);
};