We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Im using your provider for strapi and when i want to create a ressource i got an error from strapi because "data" is missing from request
I updated your provider for making working it by updating this line
By this one
And all working well. But i really dont know if im doing good ...
The text was updated successfully, but these errors were encountered:
same question, use the sample , Article entity, if we dont upload thumbmail image, it will failed in create Article
Sorry, something went wrong.
@MaximeDetaille in latest 5.1.3 version (or maybe older) you suppose to use 'transform' method like here:
import { CardActions } from '@mui/material'; import { Create, ListButton, SaveButton, SimpleForm, TextInput, Toolbar, required } from 'react-admin'; const transformUser = data => ({ data, }); const CustomToolbar = props => { return ( <Toolbar {...props} style={{ display: 'flex', justifyContent: 'flex-end' }}> <SaveButton type="button" transform={transformUser} /> </Toolbar> ) }; export const SchemeCreate = (props) => ( <Create {...props}> <SimpleForm style={{ width: '90vw' }} toolbar={<CustomToolbar />}> <TextInput fullWidth source="name" validate={[required()]} /> <TextInput fullWidth source="defaultPrompt" multiline rows={5} /> </SimpleForm> </Create> );
No branches or pull requests
Hello,
Im using your provider for strapi and when i want to create a ressource i got an error from strapi because "data" is missing from request
I updated your provider for making working it by updating this line
By this one
And all working well. But i really dont know if im doing good ...
The text was updated successfully, but these errors were encountered: