Skip to content

Commit

Permalink
188045173 DI Fix Collaborative Input Row (#1386)
Browse files Browse the repository at this point in the history
* Validate cases after adding cases.
  • Loading branch information
tealefristoe authored Aug 2, 2024
1 parent 36f06bb commit 7d0e99b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions v3/src/components/case-table/use-rows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ export const useRows = () => {
collectionTableModel.setInputRowIndex(collectionTableModel.inputRowIndex + 1)
}
data.addCases(casesToCreate, options)
// Make sure things are updated since adding cases invalidates grouping
// TODO Would it be better to make collection.caseIds a getter that automatically validates the cases?
data.validateCases()
// We look for case ids that weren't present before adding the new cases to determine which case ids
// should be included in the createCasesNotification
collection?.caseIds.forEach(caseId => {
Expand Down

0 comments on commit 7d0e99b

Please sign in to comment.