Skip to content

Commit

Permalink
Merge branch 'allow-hydration-from-stache-indexes' into consolidated-…
Browse files Browse the repository at this point in the history
…items-wip
  • Loading branch information
JohnathonKoster committed Mar 30, 2024
2 parents e82284c + d66d2bc commit ab34d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Stache/Stores/BasicStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function getCachedItem($key)
foreach ($item->receivesIndexValues() as $index) {
Stache::itemUsingIndexValues($index, $item);

$value = $this->resolveIndex($index)->get($id);
$value = $this->resolveIndex($index)->load()->get($id);

if ($value) {
$item->withIndexedValue($index, $value);
Expand Down
2 changes: 1 addition & 1 deletion src/Structures/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public function routeData()
return $this->routeData;
}

return $this->routeData = $this->entry()->routeData();
return $this->routeData = $this->entry()?->routeData() ?? [];
}

public function published()
Expand Down

0 comments on commit ab34d6a

Please sign in to comment.