Skip to content

Commit

Permalink
Merge pull request #128 from CBIIT/smallfix
Browse files Browse the repository at this point in the history
fix type 'number' is not assignable to parameter of type 'string'.issue
  • Loading branch information
jonkiky authored Sep 18, 2023
2 parents 50b58e9 + f9b5bc1 commit 7475fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/questionnaire/sections/D.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const FormSectionD: FC<FormSectionProps> = ({ SectionOption, refs }: FormSection
// Override empty file array
combinedData.files = formObject.files;
// Overwrite number type. If empty string, convert to null.
combinedData.files.map((file) => file.count = parseInt(file.count, 10) || null);
combinedData.files.map((file) => file.count = parseInt(file.count.toString(), 10) || null);

return { ref: formRef, data: combinedData };
};
Expand Down

0 comments on commit 7475fbf

Please # to comment.