Skip to content

Conversation

@diyorbekrustamjonov
Copy link

Fixes #1678

This PR fixes the TypeError: can't access property "toString", r.id is undefined error that occurs in the List component when BaseRecord.id() returns undefined or null.

Changes

  • Added null/undefined check (r.id != null) before accessing id property
  • Changed r.id.toString() to String(r.id) for safer type conversion
  • Prevents error when filtering selected records from URL query parameters

Testing

  • Tested with custom adapters where id might be undefined
  • Verified backward compatibility with existing adapters
  • No breaking changes

Related Issues

Closes #1678

…hers#1678)

- Add null check before calling toString() on record.id
- Use String() instead of toString() for safer conversion
- Prevents TypeError when BaseRecord.id() returns undefined

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Typeerror r.id is undefined

1 participant