Skip to content

Commit 7ef9d1b

Browse files
Merge pull request #334 from dd3tech/fix/input-file-single
Fix(InputFile): Validation input file single was modified
2 parents a89a432 + 44258b9 commit 7ef9d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Form/Input/InputFile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export function InputFile({
229229
)}
230230
{isLoading && <Skeleton className="w-full h-5 rounded-full" />}
231231
{singleFile &&
232-
(fileList?.length === 1 || fileName) &&
232+
fileName &&
233233
!error?.show &&
234234
!isLoading &&
235235
!progressIndicator && (
@@ -246,7 +246,7 @@ export function InputFile({
246246
<Flex alignItems="center" gap="2">
247247
<PaperClipIcon className="w-4 h-4 text-gray-400 flex-shrink-0" />
248248
<Text size="xs" className="whitespace-nowrap">
249-
{fileList?.item(0)?.name || fileName}
249+
{fileName}
250250
</Text>
251251
</Flex>
252252
<Flex alignItems="center" gap="2">

0 commit comments

Comments
 (0)