Skip to content

Avatar schema with error in first refine #3

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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