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.
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