Open ericute opened 1 year ago
Still not working in the latest version...
I have the same problem on the new remix app template, any help please?
On a perhaps related note showVariants: false
does show all the variants in the drop down. But when I look at typescript types they are different. I think the docs may be wrong. These are the types:
filter?: {
hidden?: boolean;
variants?: boolean;
draft?: boolean | undefined;
archived?: boolean | undefined;
};
And with filter.variants:false
it now works. Perhaps drafts as well. Evidently the docs for the Component is what I saw.
Describe the bug
I am using the Resource Picker to display products on a page. I do not want to display products with draft status so I set the
showDraft
flag to false. However, Draft products are still showing up.Here's what was shown in the Resource Picker:
The No Image product shouldn't show up since it is on Draft status.
To Reproduce
Steps to reproduce the behaviour:
If applicable, add screenshots to help explain your problem.
Expected behaviour
Products with draft status should not show up.
Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge
: @^2.0.26
@shopify/app-bridge-react
: @^2.0.26
@shopify/polaris
: @^8.2.2
Platform
Additional context
Add any other context about the problem here, such as your app’s configuration (Node, Next.js, Rails).