Skip to content

Commit

Permalink
display env error in create flow, not just update (#4464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Mar 28, 2024
1 parent 8a4b560 commit 39d5c31
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dashboard/src/main/home/app-dashboard/create-app/CreateApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,16 @@ const CreateApp: React.FC<CreateAppProps> = ({ history }) => {
}
errorMessage = `${errorMessage}.`;
}

if (appErrors.includes("env")) {
errorMessage = "Environment variables are not properly configured";
if (errors.app?.env?.root?.message ?? errors.app?.env?.message) {
const envErrorMessage =
errors.app?.env?.root?.message ?? errors.app?.env?.message;
errorMessage = `${errorMessage} - ${envErrorMessage}`;
}
errorMessage = `${errorMessage}.`;
}
}

showIntercomWithMessage({
Expand Down

0 comments on commit 39d5c31

Please sign in to comment.