I’m trying to use the resource picker for products in “admin.discount-details.function-settings.render” admin target.
But, I’m seeing different behavior when using “filter.variant” option with resource picking for product type and cannot control through the “multiple” options.
With the following, I can select multiple products.
const selection = await resourcePicker({
type: "product",
filter: {
variants: true,
},
multiple: true,
});
However with the following, I can only select one product. And multiple has no effect in both cases.
const selection = await resourcePicker({
type: "product",
action: "select",
filter: {
variants: false,
},
multiple: true,
});