Skip to content

Commit

Permalink
fix(cohorts): Alerting functionality when user enters wrong details w…
Browse files Browse the repository at this point in the history
…hile creating cohort (#18689)


Co-authored-by: Sukrutha <[email protected]>
  • Loading branch information
sksDonni and Sukrutha authored Nov 20, 2023
1 parent 0bbd150 commit 443fb80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/scenes/cohorts/cohortEditLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ export const cohortEditLogic = kea<cohortEditLogicType>([
cohortsModel.findMounted()?.actions.deleteCohort({ id: values.cohort.id, name: values.cohort.name })
router.actions.push(urls.cohorts())
},
submitCohort: () => {
if (values.cohortHasErrors) {
lemonToast.error('There was an error submiting this cohort. Make sure the cohort filters are correct.')
}
},
checkIfFinishedCalculating: async ({ cohort }, breakpoint) => {
if (cohort.is_calculating) {
actions.setPollTimeout(
Expand Down

0 comments on commit 443fb80

Please sign in to comment.