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

Outdated document for conditional-formatting #7797

Closed
AntonOfTheWoods opened this issue Jun 8, 2022 · 1 comment · Fixed by #7799
Closed

Outdated document for conditional-formatting #7797

AntonOfTheWoods opened this issue Jun 8, 2022 · 1 comment · Fixed by #7799
Assignees

Comments

@AntonOfTheWoods
Copy link
Contributor

What you were expecting:
The examples should work

What happened instead:
The props record is undefined.

Steps to reproduce:
Implement the following
https://marmelab.com/react-admin/Theming.html#conditional-formatting

Related code:
See outdated docs above.

See migration guide here: https://marmelab.com/react-admin/Upgrade.html#the-record-prop-is-no-longer-injected

  • React-admin version: 4.1.2
  • Last version that did not exhibit the issue (if applicable): pre-4
  • React version: all
  • Browser: all
  • Stack trace (in case of a JS error): "Cannot read properties of undefined"
@fzaninotto
Copy link
Member

Thanks for the heads up! I'm marking this as a documentation issue.

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

Successfully merging a pull request may close this issue.

2 participants