Skip to content

Commit

Permalink
Merge pull request #57 from the-deep/fix/constraint
Browse files Browse the repository at this point in the history
Add default empty string to 'constraint'
  • Loading branch information
AdityaKhatri authored Sep 14, 2023
2 parents 174a319 + 964694c commit 3ebd3df
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/views/QuestionnaireEdit/DateQuestionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down
4 changes: 3 additions & 1 deletion src/views/QuestionnaireEdit/FileQuestionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down
4 changes: 3 additions & 1 deletion src/views/QuestionnaireEdit/ImageQuestionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down
4 changes: 3 additions & 1 deletion src/views/QuestionnaireEdit/IntegerQuestionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down
4 changes: 3 additions & 1 deletion src/views/QuestionnaireEdit/RankQuestionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down
4 changes: 3 additions & 1 deletion src/views/QuestionnaireEdit/SelectOneQuestionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down
4 changes: 3 additions & 1 deletion src/views/QuestionnaireEdit/TextQuestionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down
4 changes: 3 additions & 1 deletion src/views/QuestionnaireEdit/TimeQuestionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ const schema: FormSchema = {
dataCollectionMethod: {},
priorityLevel: {},
requiredDuration: {},
constraint: {},
constraint: {
defaultValue: '',
},
}),
};

Expand Down

0 comments on commit 3ebd3df

Please sign in to comment.