Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect SKU search retains previous results instead of displaying an empty state in the add product modal #395

Open
Adameddy26 opened this issue Oct 14, 2024 · 2 comments
Labels
bug Something isn't working hacktoberfest

Comments

@Adameddy26
Copy link

Current behavior

The modal retains and displays the results from the previous valid SKU search, which can cause confusion for users, as the incorrect product appears to be listed.

Expected behavior

When an incorrect SKU is entered, the app should clear the previous results and display an empty state or a message like "No products found."

Steps to reproduce the issue

Go to the 'Add Product' feature in the Shipment/PO module.
Search for a product using a valid SKU.
Observe that the correct product is fetched and listed.
Now, search for a product using an invalid or incorrect SKU.
Observe the behavior of the product list.

Environment details

App version: v2.27.2
App environment : UAT

Additional information

See the second half of JAM.
https://jam.dev/c/e058556e-1372-41bb-a48a-70600ef31e7b

@Adameddy26 Adameddy26 added the bug Something isn't working label Oct 14, 2024
@Adameddy26 Adameddy26 changed the title Incorrect SKU search retains previous results instead of displaying an empty state in the product list modal Incorrect SKU search retains previous results instead of displaying an empty state in the add product modal Oct 14, 2024
@ashutosh7i
Copy link
Contributor

hello,
Can i work on this issue?

@amansinghbais
Copy link
Contributor

@ashutosh7i , please go ahead.

ashutosh7i added a commit to ashutosh7i/hotwax-receiving that referenced this issue Oct 19, 2024
…ad of displaying an empty state in the add product modal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants