nova-external-image icon indicating copy to clipboard operation
nova-external-image copied to clipboard

Displaying the url return a string with the message null at the end

Open juandavidcamargo99 opened this issue 3 years ago • 0 comments

It seems there is a bug when I am trying to display the URL of an image. I followed all the steps as the documentations dictates, but the URL of the image returns null at the end. example: https://example.com/null

I digged in, and I solved by adding an empty string in the method default() extended from Laravel\Nova\Fields as the following code: ExternalImage::make('example')->prefix('https://example.com/')->default('')

juandavidcamargo99 avatar Jan 13 '22 18:01 juandavidcamargo99