We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d4d6b4 commit 704a50bCopy full SHA for 704a50b
packages/api/src/Domain/Media/JsonApi/V1/MediaSchema.php
@@ -47,7 +47,7 @@ public function fields(): array
47
),
48
49
Str::make('srcset')->extractUsing(
50
- static fn (Media $model) => ($model->getSrcSet('webp') ? ($model->getSrcSet('webp').', ') : '').$model->getSrcSet()
+ static fn (Media $model) => $model->getSrcSet('webp') ?? $model->getSrcSet()
51
52
53
ArrayHash::make('custom_properties'),
0 commit comments