Skip to content

POS UI Extensions - Incorrect value received for position property in POS productSearch API #1927

Open
@raajLaddha

Description

@raajLaddha

Please list the package(s) involved in the issue, and include the version you are using

  • shopify/retail-ui-extensions-react V1.4.0

Describe the bug

The fetchProductVariantWithId function, at times, returns incorrect value for position parameter in the response. An issue was faced where there was only 1 variant available for the product, yet the position property for that variant was received as 2

Steps to reproduce the behavior:

This behaviour is not observed for all the products hence not sure what kind of products show this behaviour.

Expected behavior

The position property received by fetchProductVariantWithId() should match with the response of fetchProductWithId()

Screenshots

Screenshot 2024-05-03 at 9 59 23 PM

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions