whitecube / nova-page

Static pages content management for Laravel Nova
https://whitecube.github.io/nova-page
MIT License
238 stars 41 forks source link

Deleting Images in Flexible Content Field #74

Closed temp1029 closed 3 years ago

temp1029 commented 3 years ago

I think this is a cross-package issue with nova-flexible-content. When I try to delete an image from flexible content in a nova-page resource I am seeing a 404 error.

I've traced the issue down to this line not returning a resource (i.e. it's set to null) and then the subsequent instance of check failing. I believe the issue is with the value of 'field' passed as the last part of the URL.

Deleting images on a nova-page resource outside of flexible content field works as expected. I haven't had the chance to try deleting an image inside a flexible content field on a regular nova resource.

toonvandenbos commented 3 years ago

Hi @temp1029, this is definitely an issue with Flexible Content.