whitecube/nova-flexible-content

flexible content image delete

eno7x opened this issue · 0 comments

eno7x commented

This is the error I get when I try to delete the image in the snapshot. Has anyone encountered this problem and found a solution, thanks in advance
image

            Flexible::make('attributes')
                ->addLayout('Simple gallery section', 'gallery', [
                    Text::make('Title'),
                    Image::make('Image')
                        ->path('pages')
                        ->preview(function ($value, $disk) {
                            return $value ? Storage::disk($disk)->url($value) : null;
                        })->prunable(),

                ])