Skip to content

Commit

Permalink
fix: undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
myracodes committed Nov 4, 2024
1 parent 53e6ff7 commit ed22a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/uploader/Uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const Uploader: React.FC<UploaderProps> = ({

const isImageUploader =
!multiple && value && !Array.isArray(value)
? value.type.includes('image')
? value?.type?.includes('image')
: false

React.useEffect(() => {
Expand Down

0 comments on commit ed22a45

Please sign in to comment.