Skip to content

Commit

Permalink
undo pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dawoodkhan82 committed Jan 31, 2024
1 parent b1408b6 commit 8f25762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/file/shared/File.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
label={label || "File"}
/>

{#if (Array.isArray(value) && value.length > 0) || value !== null}
{#if value && (Array.isArray(value) ? value.length > 0 : true)}
<FilePreview {i18n} {selectable} on:select {value} {height} />
{:else}
<Empty unpadded_box={true} size="large"><File /></Empty>
Expand Down
2 changes: 1 addition & 1 deletion js/file/shared/FileUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
label={label || "File"}
/>

{#if (Array.isArray(value) && value.length > 0) || value !== null}
{#if value && (Array.isArray(value) ? value.length > 0 : true)}
<ModifyUpload {i18n} on:clear={handle_clear} absolute />
<FilePreview {i18n} on:select {selectable} {value} {height} />
{:else}
Expand Down

0 comments on commit 8f25762

Please sign in to comment.