Skip to content

Commit

Permalink
We think this may be unessessary after fixing the placeholder bottlen…
Browse files Browse the repository at this point in the history
…eck.
  • Loading branch information
jesseleite committed Dec 6, 2023
1 parent 2ddd236 commit 5ef80aa
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/Fieldtypes/SeoProFieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Statamic\Contracts\Entries\Entry;
use Statamic\Contracts\Taxonomies\Term;
use Statamic\Facades\Blink;
use Statamic\Facades\Blueprint;
use Statamic\Facades\GraphQL;
use Statamic\Fields\Fields as BlueprintFields;
Expand Down Expand Up @@ -49,22 +48,18 @@ public function process($data)

protected function fields()
{
return Blink::once('seo-pro::blueprint-fields', function () {
return new BlueprintFields($this->fieldConfig());
});
return new BlueprintFields($this->fieldConfig());
}

protected function fieldConfig()
{
return Blink::once('seo-pro::blueprint-fields-config', function () {
$parent = $this->field()->parent();

if (! ($parent instanceof Entry || $parent instanceof Term)) {
$parent = null;
}

return SeoProFields::new($parent ?? null)->getConfig();
});
$parent = $this->field()->parent();

if (! ($parent instanceof Entry || $parent instanceof Term)) {
$parent = null;
}

return SeoProFields::new($parent ?? null)->getConfig();
}

public function augment($data)
Expand Down

0 comments on commit 5ef80aa

Please sign in to comment.