Skip to content

Commit

Permalink
Use 'getThumbnail()' instead of 'getThumbnailConfig()'
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse authored and aryaantony92 committed Sep 25, 2023
1 parent 3853239 commit c53a521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/Resolver/AssetType.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function resolveSrcSet($value = null, $args = [], $context = [], ResolveI
if ($asset instanceof Asset\Image) {
$mediaQueries = [];
$thumbnail = $assetFieldHelper->getAssetThumbnail($asset, $thumbNailConfig, $thumbNailFormat);
$thumbnailConfig = $asset->getThumbnailConfig($args['thumbnail']);
$thumbnailConfig = $asset->getThumbnail($args['thumbnail'])->getConfig();
if ($thumbnailConfig) {
foreach ($thumbnailConfig->getMedias() as $key => $val) {
$mediaQueries[] = [
Expand Down

0 comments on commit c53a521

Please sign in to comment.