hotwax / inventory-count

HotWax Commerce Inventory Count
Apache License 2.0
16 stars 66 forks source link

Toast Message Only Appearing Once and Incorrect File Name Retained After Second CSV Upload Failure #448

Open Adameddy26 opened 2 months ago

Adameddy26 commented 2 months ago

Note

Same issue can be replicated in EXIM of Fulfillment App, Import App.

Current behavior

The toast message only appears after the first failed upload attempt. After the second failed attempt, the first file's name remains in the field instead of updating to the second file.

Expected behavior

A toast message should be generated for every failed upload attempt, regardless of how many files are uploaded. After the second failed upload, the name of the second file should appear in the file upload field.

Steps to reproduce the issue

Navigate to the 'Draft Bulk' page. Upload an incorrect CSV file (which should fail). Observe that a toast message is displayed indicating the upload failure. Now, upload another incorrect CSV file. Observe that no toast message is generated for the second failed attempt. Check the file name field and observe that the name of the first file still appears instead of the second file.

Environment details

App version : v2.1.0 App environment : UAT

Additional Information

https://jam.dev/c/a3d20694-5d80-4001-83d6-89ec44ad9bf3

abhishekojha06 commented 1 month ago

i want to contribute on inventry count