Skip to content

Commit b735588

Browse files
committed
B2B-2255: "Currency" GraphQl query has no cache identity
1 parent b3fcfdb commit b735588

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/DirectoryGraphQl/Model/Resolver/Currency

1 file changed

+3
-1
lines changed

app/code/Magento/DirectoryGraphQl/Model/Resolver/Currency/Identity.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ public function __construct(StoreManagerInterface $storeManager)
3232

3333
/**
3434
* @inheritdoc
35-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3635
*/
3736
public function getIdentities(array $resolvedData): array
3837
{
38+
if (empty($resolvedData)) {
39+
return [];
40+
}
3941
$storeId = $this->storeManager->getStore()->getId();
4042
return [self::CACHE_TAG, sprintf('%s_%s', self::CACHE_TAG, $storeId)];
4143
}

0 commit comments

Comments
 (0)