Skip to content

Commit 6c2deba

Browse files
committed
fix(dref-schema): add id in the list item
1 parent 2589b92 commit 6c2deba

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

app/src/views/DrefApplicationForm/schema.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ const schema: DrefFormSchema = {
390390
member: () => ({
391391
fields: (): SourceInformationFields => ({
392392
client_id: {},
393+
id: { defaultValue: undefinedValue },
393394
source_name: {
394395
required: true,
395396
requiredValidation: requiredStringCondition,
@@ -418,6 +419,7 @@ const schema: DrefFormSchema = {
418419
member: () => ({
419420
fields: (): SourceInformationFields => ({
420421
client_id: {},
422+
id: { defaultValue: undefinedValue },
421423
source_name: {
422424
required: true,
423425
requiredValidation: requiredStringCondition,
@@ -587,6 +589,7 @@ const schema: DrefFormSchema = {
587589
member: () => ({
588590
fields: (): NationalSocietyFields => ({
589591
client_id: {},
592+
id: { defaultValue: undefinedValue },
590593
title: {
591594
required: true,
592595
requiredValidation: requiredStringCondition,
@@ -617,6 +620,7 @@ const schema: DrefFormSchema = {
617620
member: () => ({
618621
fields: (): NeedsIdentifiedFields => ({
619622
client_id: {},
623+
id: { defaultValue: undefinedValue },
620624
title: {
621625
required: true,
622626
requiredValidation: requiredStringCondition,
@@ -874,6 +878,7 @@ const schema: DrefFormSchema = {
874878
member: () => ({
875879
fields: (): RiskSecurityFields => ({
876880
client_id: {},
881+
id: { defaultValue: undefinedValue },
877882
risk: {
878883
required: true,
879884
requiredValidation: requiredStringCondition,
@@ -893,6 +898,7 @@ const schema: DrefFormSchema = {
893898
member: () => ({
894899
fields: (): PlannedInterventionFields => ({
895900
client_id: {},
901+
id: { defaultValue: undefinedValue },
896902
title: {
897903
required: true,
898904
requiredValidation: requiredStringCondition,
@@ -915,6 +921,7 @@ const schema: DrefFormSchema = {
915921
member: () => ({
916922
fields: (): IndicatorFields => ({
917923
client_id: {},
924+
id: { defaultValue: undefinedValue },
918925
title: {},
919926
target: { validations: [positiveNumberCondition] },
920927
}),

app/src/views/DrefOperationalUpdateForm/schema.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ const schema: OpsUpdateFormSchema = {
344344
member: () => ({
345345
fields: (): SourceInformationFields => ({
346346
client_id: {},
347+
id: { defaultValue: undefinedValue },
347348
source_name: {
348349
required: true,
349350
requiredValidation: requiredStringCondition,
@@ -476,6 +477,7 @@ const schema: OpsUpdateFormSchema = {
476477
member: () => ({
477478
fields: (): NeedsIdentifiedFields => ({
478479
client_id: {},
480+
id: { defaultValue: undefinedValue },
479481
title: {
480482
required: true,
481483
requiredValidation: requiredStringCondition,
@@ -614,6 +616,7 @@ const schema: OpsUpdateFormSchema = {
614616
member: () => ({
615617
fields: (): RiskSecurityFields => ({
616618
client_id: {},
619+
id: { defaultValue: undefinedValue },
617620
risk: {
618621
required: true,
619622
requiredValidation: requiredStringCondition,
@@ -633,6 +636,7 @@ const schema: OpsUpdateFormSchema = {
633636
member: () => ({
634637
fields: (): PlannedInterventionFields => ({
635638
client_id: {},
639+
id: { defaultValue: undefinedValue },
636640
title: {
637641
required: true,
638642
requiredValidation: requiredStringCondition,
@@ -670,6 +674,7 @@ const schema: OpsUpdateFormSchema = {
670674
member: () => ({
671675
fields: (): IndicatorFields => ({
672676
client_id: {},
677+
id: { defaultValue: undefinedValue },
673678
title: {},
674679
target: { validations: [positiveNumberCondition] },
675680
actual: {

0 commit comments

Comments
 (0)