Skip to content

Commit

Permalink
Fetch updated animal actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevespi committed Nov 30, 2024
1 parent 5545ba2 commit 52eba1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/app/store/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { AddComplaintSearchParameters } from "./migrations/migration-19";
import { DrugAdministeredChanges } from "./migrations/migration-20";
import { AddCat1TypeAndLocationType } from "./migrations/migration-21";
import { AddActiveComplaintsViewType } from "./migrations/migration-22";
import { AssessmentTypeUpdates } from "./migrations/migration-23";

const BaseMigration = {
0: (state: any) => {
Expand Down Expand Up @@ -52,6 +53,7 @@ migration = {
...DrugAdministeredChanges,
...AddCat1TypeAndLocationType,
...AddActiveComplaintsViewType,
...AssessmentTypeUpdates,
};

export default migration;
12 changes: 12 additions & 0 deletions frontend/src/app/store/migrations/migration-23.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Refresh assessment_types
export const AssessmentTypeUpdates = {
23: (state: any) => {
return {
...state,
codeTables: {
...state.codeTables,
"assessment-type": [],
},
};
},
};

0 comments on commit 52eba1c

Please sign in to comment.