From 52eba1c0d4d6d54dd2ba810ac04bf3f69ea592ed Mon Sep 17 00:00:00 2001 From: Mike Vesprini Date: Fri, 29 Nov 2024 16:11:07 -0800 Subject: [PATCH] Fetch updated animal actions --- frontend/src/app/store/migrations.ts | 2 ++ frontend/src/app/store/migrations/migration-23.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 frontend/src/app/store/migrations/migration-23.ts diff --git a/frontend/src/app/store/migrations.ts b/frontend/src/app/store/migrations.ts index 7214e2d83..1dae28cc8 100644 --- a/frontend/src/app/store/migrations.ts +++ b/frontend/src/app/store/migrations.ts @@ -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) => { @@ -52,6 +53,7 @@ migration = { ...DrugAdministeredChanges, ...AddCat1TypeAndLocationType, ...AddActiveComplaintsViewType, + ...AssessmentTypeUpdates, }; export default migration; diff --git a/frontend/src/app/store/migrations/migration-23.ts b/frontend/src/app/store/migrations/migration-23.ts new file mode 100644 index 000000000..386d37dfc --- /dev/null +++ b/frontend/src/app/store/migrations/migration-23.ts @@ -0,0 +1,12 @@ +// Refresh assessment_types +export const AssessmentTypeUpdates = { + 23: (state: any) => { + return { + ...state, + codeTables: { + ...state.codeTables, + "assessment-type": [], + }, + }; + }, +};