We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce0b5ab + 9e87d2b commit b6f3c4bCopy full SHA for b6f3c4b
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