Skip to content

Commit

Permalink
Theoretical improvement.
Browse files Browse the repository at this point in the history
Still not correct though, apparently: craftcms/cms#5067 (comment)
  • Loading branch information
mattstein committed Oct 17, 2019
1 parent d396359 commit ae3dcd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 50 deletions.
4 changes: 2 additions & 2 deletions src/fields/ProductDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ public function normalizeValue($value, ElementInterface $element = null)
* @inheritdoc
* @since 3.3.0
*/
public function getContentGqlType(): array
public function getContentGqlType()
{
$typeName = $this->handle.'_ProductDetailsField';
$typeName = $this->handle.'_SnipcartField';

$productDetailsType = GqlEntityRegistry::getEntity($typeName)
?: GqlEntityRegistry::createEntity($typeName, new ObjectType([
Expand Down
48 changes: 0 additions & 48 deletions src/gql/ProductDetails.php

This file was deleted.

0 comments on commit ae3dcd1

Please sign in to comment.