Skip to content

Avatar schema with error in first refine #3

@eduardobertozi

Description

@eduardobertozi

Hi!
In first refine expression, the filter it's not working.
.refine((files) => !!files.item(0), "A imagem de perfil é obrigatória")
This error returned: Cannot read properties of null (reading 'size')
When empty file is sending, the first filter passing not throw error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions