FIX: Correct error in AdminDashboardData problem check (#119)
This would cause admin checks to fail when the plugin is disabled.
Unfortunately plugin-contributed AdminDashboardData checks are not currently testable, but I hope to fix that in a future core commit.
Follow-up to 8de3e498b2
This commit is contained in:
parent
d63e11cf33
commit
3900586557
|
@ -29,7 +29,7 @@ after_initialize do
|
|||
add_admin_route 'chat_integration.menu_title', 'chat-integration'
|
||||
|
||||
AdminDashboardData.add_problem_check do
|
||||
break if !SiteSetting.chat_integration_enabled
|
||||
next if !SiteSetting.chat_integration_enabled
|
||||
|
||||
error = false
|
||||
DiscourseChatIntegration::Channel.find_each do |channel|
|
||||
|
|
Loading…
Reference in New Issue