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
Admin version: 2.8.3
Description I get "Server communication error" every time I delete a record.
Possible solution All delete requests done by dataProvider.delete() got rejected by fetchJsonLd because of changes done in this commit
dataProvider.delete()
fetchJsonLd
The text was updated successfully, but these errors were encountered:
I see the same behavior in Admin 3.0.0-rc
Sorry, something went wrong.
My current workaround is to decorate the dataProvider
return { ...dataProvider, // @ts-ignore delete: ( resource: string, params: ApiPlatformAdminDeleteParams, ): Promise<DeleteResult<ApiPlatformAdminRecord>> => dataProvider.delete(resource, params).then( result => result, error => { return error.response.status === 204 ? { data: params.previousData } : Promise.reject(error); }, ), };
(also accepting suggestions on how to get rid of the typescript issues that force me to use @ts-ignore. :P
It should be solved in 2.8.4.
No branches or pull requests
Admin version: 2.8.3
Description
I get "Server communication error" every time I delete a record.
Possible solution
All delete requests done by
dataProvider.delete()
got rejected byfetchJsonLd
because of changes done in this commitThe text was updated successfully, but these errors were encountered: