diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java index e1ebba5977..75dd6d2c6b 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java @@ -381,7 +381,7 @@ public class EnvManagerCEImpl implements EnvManagerCE { */ public void setAnalyticsEventAction(Map properties, String newVariable, String originalVariable, String authEnv) { // Authentication configuration added - if (!newVariable.isEmpty() && originalVariable.isEmpty()) { + if (!newVariable.isEmpty() && (originalVariable == null || originalVariable.isEmpty())) { properties.put("action", "Added"); } // Authentication configuration removed