From 9c3c6f7a7c87e594717873e9b4704e0475822c55 Mon Sep 17 00:00:00 2001 From: freddyaboulton Date: Tue, 30 Jan 2024 11:09:59 -0500 Subject: [PATCH] Fix bug + add buggy story --- js/file/FileUpload.stories.svelte | 82 +++++++++++++++++++++++++++++++ js/file/shared/FileUpload.svelte | 2 +- 2 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 js/file/FileUpload.stories.svelte diff --git a/js/file/FileUpload.stories.svelte b/js/file/FileUpload.stories.svelte new file mode 100644 index 0000000000000..b86a02958a6a9 --- /dev/null +++ b/js/file/FileUpload.stories.svelte @@ -0,0 +1,82 @@ + + + + + + + + + diff --git a/js/file/shared/FileUpload.svelte b/js/file/shared/FileUpload.svelte index 026ea4efcf543..be6c4eaeb9560 100644 --- a/js/file/shared/FileUpload.svelte +++ b/js/file/shared/FileUpload.svelte @@ -67,7 +67,7 @@ label={label || "File"} /> -{#if value && (Array.isArray(value) ? value.length > 0 : false)} +{#if value && (Array.isArray(value) ? value.length > 0 : true)} {:else}