Skip to content

Commit

Permalink
fix(uploadFile): null ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Sep 20, 2024
1 parent ff4d0e2 commit e06368a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms/src/components-control/form-utils/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export async function parseFiles(about: AboutFormName, astro: AstroGlobal, multi
export function parseEmptyFiles(about: AboutFormName, astro: AstroGlobal) {
if(astro.props.readonly) return;

if (about.formValue.size === 0) {
if (!about.formValue || about.formValue.size === 0) {
about.formValue = null;
}

Expand Down

0 comments on commit e06368a

Please sign in to comment.