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

[data grid] Type error Cannot read properties of undefined (reading 'id') #15716

Closed
93carlosmesa opened this issue Dec 3, 2024 · 4 comments
Closed
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@93carlosmesa
Copy link

93carlosmesa commented Dec 3, 2024

Steps to reproduce

Steps:

  1. i'm not sure

Current behavior

i don't know.

Expected behavior

I understand that a undefined arrives, and you should control it in ‘nextRow’.

Context

We are using an error handler called Sentry, and it has indicated that you have an error in ./node_modules/@mui/x-data-grid/hooks/features/focus/useGridFocus.js in handleRowSet at line 338:29.
Screenshot 2024-12-03 at 15 29 48

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

System:
OS: macOS 14.6.1
Binaries:
Node: 18.19.1 - ~/.nvm/versions/node/v18.19.1/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v18.19.1/bin/npm
pnpm: Not Found
Browsers:
Chrome: 131.0.6778.86
Edge: 131.0.2903.70
Safari: 17.6
npmPackages:
@emotion/react: ^11.13.0 => 11.13.0
@emotion/styled: ^11.13.0 => 11.13.0
@mui/base: ^5.0.0-beta.40 => 5.0.0-dev.20240529-082515-213b5e33ab
@mui/core-downloads-tracker: 5.16.6
@mui/icons-material: ^5.16.6 => 5.16.6
@mui/lab: ^5.0.0-alpha.173 => 5.0.0-alpha.173
@mui/material: ^5.16.6 => 5.16.6
@mui/private-theming: 5.16.6
@mui/styled-engine: 5.16.6
@mui/styled-engine-sc: ^6.0.0-alpha.18 => 6.0.0-dev.20240529-082515-213b5e33ab
@mui/styles: ^5.16.6 => 5.16.6
@mui/system: ^5.16.6 => 5.16.6
@mui/types: 7.2.15
@mui/utils: 6.1.4
@mui/x-data-grid: 7.23.0
@mui/x-data-grid-generator: ^7.23.0 => 7.23.0
@mui/x-data-grid-premium: ^7.23.0 => 7.23.0
@mui/x-data-grid-pro: ^7.23.0 => 7.23.0
@mui/x-date-pickers: ^7.23.0 => 7.23.0
@mui/x-internals: 7.23.0
@mui/x-license: 7.23.0
@mui/x-license-pro: ^6.10.2 => 6.10.2
@types/react: ^18.3.3 => 18.3.3
react: 18.3.1 => 18.3.1
react-dom: 18.3.1 => 18.3.1
styled-components: ^6.1.12 => 6.1.12
typescript: ^5.6.3 => 5.6.3

Search keywords: Type error undefined nextRow
Order ID: #1061-3100

@93carlosmesa 93carlosmesa added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 3, 2024
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Dec 3, 2024
@michelengelen
Copy link
Member

To help us diagnose the issue efficiently, could you provide a stripped-down reproduction test case using the latest version? A live example would be fantastic! ✨

For your convenience, our documentation offers templates and guides on creating targeted examples: Support - Bug reproduction

Just a friendly reminder: clean, functional code with minimal dependencies is most helpful. Complex code can make it tougher to pinpoint the exact issue. Sometimes, simply going through the process of creating a minimal reproduction can even clarify the problem itself!

Thanks for your understanding! 🙇🏼

@michelengelen michelengelen changed the title Type error Cannot read properties of undefined (reading 'id') [data grid] Type error Cannot read properties of undefined (reading 'id') Dec 3, 2024
@michelengelen michelengelen added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 3, 2024
@93carlosmesa
Copy link
Author

Hi, thanks for the reply, we will try to get more information as we have not detected the error in which case it appears, it has happened to a customer, and sentry has notified us where it comes from.

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Dec 5, 2024
@arminmeh
Copy link
Contributor

arminmeh commented Dec 5, 2024

Hey @93carlosmesa

This looks like this issue
Issue was fixed a while ago, but in your environment it is stated that you are using latest data-grid package.
Can you confirm if that is also the case on the customer's environment?

@arminmeh arminmeh added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 5, 2024
Copy link

The issue has been inactive for 7 days and has been automatically closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants