Commit b39f8fb4 by Torkel Ödegaard

Do not show Switch to Org item for current organization in the org dropdown, Fixes #2136

parent 6deaa87a
...@@ -55,7 +55,7 @@ function (angular, _, $, config) { ...@@ -55,7 +55,7 @@ function (angular, _, $, config) {
backendSrv.get('/api/user/orgs').then(function(orgs) { backendSrv.get('/api/user/orgs').then(function(orgs) {
_.each(orgs, function(org) { _.each(orgs, function(org) {
if (org.isUsing) { if (org.orgId === contextSrv.user.orgId) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment