Skip to content

Commit

Permalink
support clearing groups tab for .clearOnChange flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavriel Matt authored and xzhou82 committed Jan 8, 2025
1 parent c6bd48d commit 9db4a74
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/mass/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,20 @@ export class MassAbout {
lst: []
}
})
if (clearOnChange.groups) {
for (const group of state.groups) {
subactions.push({
type: 'delete_group',
name: group.name
})
}
for (const term of state.customTerms) {
subactions.push({
type: 'delete_customTerm',
name: term.name
})
}
}
subactions.push({ type: 'cohort_set', activeCohort: i })
app.dispatch({
type: 'app_refresh',
Expand Down

0 comments on commit 9db4a74

Please sign in to comment.