We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a89a432 + 44258b9 commit 7ef9d1bCopy full SHA for 7ef9d1b
src/components/Form/Input/InputFile.tsx
@@ -229,7 +229,7 @@ export function InputFile({
229
)}
230
{isLoading && <Skeleton className="w-full h-5 rounded-full" />}
231
{singleFile &&
232
- (fileList?.length === 1 || fileName) &&
+ fileName &&
233
!error?.show &&
234
!isLoading &&
235
!progressIndicator && (
@@ -246,7 +246,7 @@ export function InputFile({
246
<Flex alignItems="center" gap="2">
247
<PaperClipIcon className="w-4 h-4 text-gray-400 flex-shrink-0" />
248
<Text size="xs" className="whitespace-nowrap">
249
- {fileList?.item(0)?.name || fileName}
+ {fileName}
250
</Text>
251
</Flex>
252
0 commit comments