Skip to content

Commit 4418171

Browse files
frozenheliumbarshathakuri
authored andcommitted
fix(dref): update schema to include major coordination mechanism description
1 parent acf6090 commit 4418171

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.changeset/poor-bars-swim.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Fix DREF form to properly save major coordination mechanism [#1928](https://github.com/IFRCGo/go-web-app/issues/1928)

app/src/views/DrefApplicationForm/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ const schema: DrefFormSchema = {
605605
national_authorities: {},
606606
un_or_other_actor: {},
607607
is_there_major_coordination_mechanism: {},
608+
major_coordination_mechanism: {},
608609
};
609610
if (val?.type_of_dref !== TYPE_ASSESSMENT) {
610611
conditionalFields = {

app/src/views/DrefOperationalUpdateForm/schema.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ const schema: OpsUpdateFormSchema = {
430430
'national_authorities',
431431
'un_or_other_actor',
432432
'is_there_major_coordination_mechanism',
433+
'major_coordination_mechanism',
433434
] as const;
434435
type ActionsDrefTypeRelatedFields = Pick<
435436
OpsUpdateFormSchemaFields,
@@ -464,6 +465,7 @@ const schema: OpsUpdateFormSchema = {
464465
government_requested_assistance: {},
465466
national_authorities: {},
466467
is_there_major_coordination_mechanism: {},
468+
major_coordination_mechanism: {},
467469
un_or_other_actor: {},
468470
};
469471
if (val?.type_of_dref !== TYPE_ASSESSMENT) {

0 commit comments

Comments
 (0)