From c53a521ae526536e84473d1e16f5d1a8530aa213 Mon Sep 17 00:00:00 2001 From: Sebastian Blank Date: Mon, 25 Sep 2023 09:07:58 +0200 Subject: [PATCH] Use 'getThumbnail()' instead of 'getThumbnailConfig()' --- src/GraphQL/Resolver/AssetType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphQL/Resolver/AssetType.php b/src/GraphQL/Resolver/AssetType.php index 6a7cc286..20bfe9a0 100644 --- a/src/GraphQL/Resolver/AssetType.php +++ b/src/GraphQL/Resolver/AssetType.php @@ -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[] = [