Skip to content

Commit 50bafc9

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

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-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
}),

0 commit comments

Comments
 (0)