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

ListGuesser links to Edit view even though there is only a ShowView #8485

Closed
fzaninotto opened this issue Dec 9, 2022 · 0 comments · Fixed by #8546
Closed

ListGuesser links to Edit view even though there is only a ShowView #8485

fzaninotto opened this issue Dec 9, 2022 · 0 comments · Fixed by #8546
Labels

Comments

@fzaninotto
Copy link
Member

What you were expecting:
Using ListGuesser in a resource with inly a Show view, the guessed Datagrid should link to the Show view.

<Resource name="conversations" list={ListGuesser} show={ShowGuesser} />

What happened instead:

The generated code links to the Edit view instead

import { Datagrid, List, TextField } from 'react-admin';

export const ConversationList = () => (
    <List>
        <Datagrid rowClick="edit">
            <TextField source="id" />
            <TextField source="customer" />
            <TextField source="status" />
        </Datagrid>
    </List>
);

Environment

  • React-admin version: 4.6
  • Last version that did not exhibit the issue (if applicable): n/a
  • React version: 18
  • Browser: Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant