-
-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Description
Describe the bug
If using an ACF Post Object field in a repeater, there are instances where a user may save an empty entry. As is, the current filter assumes all values are non-nullable and thus fetches for a post with no ID. As a result, the first product returns.
To Reproduce
Steps to reproduce the behavior:
- Create an ACF repeater field
- Create one Post Object sub field
- On a page, add 2 repeater items, but only selecting a product for 1 of the fields, leaving the 2nd blank
- Save page
- Run a GraphQL query for the items
Expected behavior
The query should return an array with two objects: one product + one null
Actual behavior
The query returns an array with two product objects
Desktop (please complete the following information):
- WooGraphQL: 0.7
- WooCommerce: 4.7.1
- ACF: 5.8.6
Metadata
Metadata
Assignees
Labels
No labels