We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce0b5ab commit 9e87d2bCopy full SHA for 9e87d2b
apps/backend/src/mutations/QuestionaryMutations.ts
@@ -244,7 +244,11 @@ export default class QuestionaryMutations {
244
}
245
const { value, ...parsedAnswerRest } = JSON.parse(answer.value);
246
if (
247
- !isPartialSave &&
+ (!isPartialSave ||
248
+ (questionTemplateRelation.question.dataType ===
249
+ DataType.FILE_UPLOAD &&
250
+ value != null &&
251
+ value.length > 0)) &&
252
!(await isMatchingConstraints(questionTemplateRelation, value))
253
) {
254
return rejection(
0 commit comments