Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table/delete event: TypeError: Cannot read properties of undefined (reading 'length') #678

Open
avelino opened this issue Jan 27, 2022 · 0 comments
Labels

Comments

@avelino
Copy link
Member

avelino commented Jan 27, 2022

        {selectionModel.length === 0 ? null : (
          <Badge color="error" badgeContent={selectionModel.length}>
            <Fab color="secondary" aria-label="remove" onClick={deleteRows}>
              <RemoveIcon />
            </Fab>
          </Badge>
        )}

https://github.com/prest/prestd-buildui/blob/c39b5a1b31d1c16f5b4f10baf233f7d9269d350d/src/pages/%5Bentity%5D/index.tsx#L97-L103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant