Skip to content

Commit a367701

Browse files
committed
Make new app the active app
1 parent 56190fb commit a367701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/express/public/core/app-management/javascripts/countly.views.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,10 @@
392392
label: data.name
393393
});
394394
self.$store.dispatch("countlyCommon/addToAllApps", data);
395+
self.$store.dispatch("countlyCommon/updateActiveApp", data._id + "");
395396
if (self.firstApp) {
396397
countlyCommon.ACTIVE_APP_ID = data._id + "";
397398
app.onAppManagementSwitch(data._id + "", data && data.type || "mobile");
398-
self.$store.dispatch("countlyCommon/updateActiveApp", data._id + "");
399399
app.initSidebar();
400400
}
401401
self.firstApp = self.checkIfFirst();

0 commit comments

Comments
 (0)