Skip to content

Commit

Permalink
Fix SEO showing when disabled on entry level.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Nov 25, 2020
1 parent f18df81 commit d471b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tags/SeoProTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SeoProTags extends Tags
*/
public function meta()
{
if (array_get($this->context, 'seo') === false) {
if ($this->context->value('seo') === false) {
return;
}

Expand All @@ -39,7 +39,7 @@ public function metaData()
$metaData = (new Cascade)
->with(SiteDefaults::load()->augmented())
->with($this->getAugmentedSectionDefaults($current))
->with($this->context->get('seo'))
->with($this->context->value('seo'))
->withCurrent($current)
->get();

Expand Down

0 comments on commit d471b6f

Please sign in to comment.