I’ve replicated this issue on many apps, where I’m not able to select any product when multiple product selection is false when selectedProductIds are passed in resourcePicker options.
First, it shows the selected product when selectedProductIds are passed, but when that selected product is unchecked, all other products get disabled.
await shopify.resourcePicker({
type: 'product',
selectionIds: [
{
id: upsellData.product.id,
variants: upsellData.product.variants.map(variant => ({
id: variant.id,
})),
},
],
action: 'select',
})
Here’s the code for my resource picker