Skip to content

Commit

Permalink
Keep order of sites as defined in the config (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni authored May 20, 2024
1 parent fb905d4 commit 6c63f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/SeoDefaultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function sites(): Collection

if ($parent = $this->parent()) {
// Only return sites from the parent that are configured in Statamic's sites config
return $parent->sites()->intersect($allSites)->values();
return $allSites->filter(fn ($site) => $parent->sites()->contains($site));
}

return $allSites;
Expand Down

0 comments on commit 6c63f9e

Please sign in to comment.