Skip to content

Commit

Permalink
Merge pull request #2727 from dpfaffenbauer/issue/2726
Browse files Browse the repository at this point in the history
[Store] fix cached store context
  • Loading branch information
dpfaffenbauer authored Oct 9, 2024
2 parents 6e97f70 + 22b1f32 commit 44ebd84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function __construct(
public function getStore(): StoreInterface
{
if (false === $this->initialized) {
$this->initialized = true;
$this->cachedStore = $this->requestBasedStoreContext->getStore();
$this->initialized = true;
} elseif (!$this->cachedStore) {
throw new StoreNotFoundException();
}
Expand Down

0 comments on commit 44ebd84

Please sign in to comment.