Merge branch 'release' of https://github.com/appsmithorg/appsmith into release

This commit is contained in:
Automated Github Action 2020-08-04 16:05:25 +00:00
commit eea94b9d1e
2 changed files with 2 additions and 2 deletions

View File

@ -78,6 +78,7 @@ export function* getCurrentUserSaga() {
const isValidResponse = yield validateResponse(response);
if (isValidResponse) {
AnalyticsUtil.identifyUser(response.data.username, response.data);
if (window.location.pathname === BASE_URL) {
if (response.data.isAnonymous) {
history.replace(AUTH_LOGIN_URL);

View File

@ -175,8 +175,7 @@ class AnalyticsUtil {
userData: {
userId: userData.id,
email: userData.email,
currentOrgId: userData.currentOrganization.id,
currentOrgName: userData.currentOrganization.name,
currentOrgId: userData.currentOrganizationId,
appId: appId,
appName: app ? app.name : undefined,
},