Skip to content

Commit

Permalink
Merge branch 'master' into fix/where-json-contains
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Nov 12, 2024
2 parents f2f2338 + 0d2403d commit efb7cb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Search/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public function getBaseItems()
{
$results = $this->getSearchResults($this->query);

return $this->transformResults($results);
}

public function transformResults($results)
{
if (! $this->withData) {
return $this->collect($results)
->map(fn ($result) => new PlainResult($result))
Expand Down
2 changes: 1 addition & 1 deletion src/StaticCaching/NoCache/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function restore()
{
$session = StaticCache::cacheStore()->get('nocache::session.'.md5($this->url));

$this->regions = $this->regions->merge($session['regions'] ?? []);
$this->regions = $this->regions->merge($session['regions'] ?? [])->unique()->values();
$this->cascade = $this->restoreCascade();

$this->resolvePageAndPathForPagination();
Expand Down

0 comments on commit efb7cb4

Please sign in to comment.