Merge pull request #3566 from appsmithorg/fix/stringify-page-save-analytics

Stringify page save analytics
This commit is contained in:
Nikhil Nandagopal 2021-03-16 14:51:59 +05:30 committed by GitHub
commit 2e6e015159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,7 @@ function* savePageSaga(action: ReduxAction<{ isRetry?: boolean }>) {
pageId: savePageRequest.pageId,
},
);
AnalyticsUtil.logEvent("PAGE_SAVE", savePageRequest);
AnalyticsUtil.logEvent("PAGE_SAVE", JSON.stringify(savePageRequest));
try {
// Store the updated DSL in the pageDSLs reducer
yield put({
@ -384,8 +384,8 @@ function* savePageSaga(action: ReduxAction<{ isRetry?: boolean }>) {
widgets[widgetId],
);
AnalyticsUtil.logEvent("CORRECT_BAD_BINDING", {
error: incorrectBindingError,
correctWidget: correctedWidget,
error: error.message,
correctWidget: JSON.stringify(correctedWidget),
});
yield put(
updateAndSaveLayout(