Skip to content

Commit 02718d5

Browse files
Merge pull request #6737 from Countly/SER-2520-when-the-user-creates-a-new-app-the-newly-created-app-appears-as-selected-in-the-upper-left-corner-however-after-refreshing-the-page-the-previously-selected-app-is-shown-instead-of-the-new-one
[SER-2520] Persist newly created app after page refresh
2 parents 2452d54 + d8cf1a1 commit 02718d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@
394394
});
395395
self.$store.dispatch("countlyCommon/addToAllApps", data);
396396
self.$store.dispatch("countlyCommon/updateActiveApp", data._id + "");
397+
countlyCommon.setActiveApp(data._id);
397398
if (self.firstApp) {
398399
countlyCommon.ACTIVE_APP_ID = data._id + "";
399400
app.onAppManagementSwitch(data._id + "", data && data.type || "mobile");
@@ -892,4 +893,4 @@
892893
return countlyGlobal.timezones;
893894
}
894895
};
895-
})();
896+
})();

0 commit comments

Comments
 (0)