Skip to content

Commit

Permalink
Fix globalset augmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcusackie authored Sep 3, 2022
1 parent ae70798 commit 54bc64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StatamicBladeViewData.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function globalSet(string $handle) {
if(array_key_exists($handle, $this->globalSets)) {
return $this->globalSets[$handle];
}
else if($globalSet = GlobalSet::findByHandle($handle)) {
else if($globalSet = GlobalSet::findByHandle($handle)->inCurrentSite()) {
return $globalSet;
}

Expand Down

0 comments on commit 54bc64c

Please sign in to comment.