From a66dd6c13ccf12c5bd20571593330efb1669242d Mon Sep 17 00:00:00 2001 From: Alexandre Jarnoux Date: Tue, 25 Oct 2016 18:25:06 +1100 Subject: [PATCH] [MNOE-223] Fix empty list of apps when clicking on current company --- .../dashboard-company-selectbox.coffee | 1 + .../dashboard-company-selectbox.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/components/dashboard-company-selectbox/dashboard-company-selectbox.coffee b/src/app/components/dashboard-company-selectbox/dashboard-company-selectbox.coffee index 5a45d145..388c936c 100644 --- a/src/app/components/dashboard-company-selectbox/dashboard-company-selectbox.coffee +++ b/src/app/components/dashboard-company-selectbox/dashboard-company-selectbox.coffee @@ -16,6 +16,7 @@ DashboardCompanySelectboxCtrl = ($scope, $location, $stateParams, $cookies, $sce } selectBox.changeTo = (organization) -> + return if organization.id == parseInt(MnoeOrganizations.selectedId) MnoeAppInstances.emptyAppInstances() MnoeAppInstances.clearCache() MnoeOrganizations.get(organization.id) diff --git a/src/app/components/dashboard-company-selectbox/dashboard-company-selectbox.html b/src/app/components/dashboard-company-selectbox/dashboard-company-selectbox.html index a7d09286..88d4a3ac 100644 --- a/src/app/components/dashboard-company-selectbox/dashboard-company-selectbox.html +++ b/src/app/components/dashboard-company-selectbox/dashboard-company-selectbox.html @@ -15,7 +15,7 @@