Tizra / Tizra-Customer-Tracker

Bug/Enhancement tracking for Tizra publisher project
3 stars 0 forks source link

Deleting a newly created batch causes 2 batches to be deleted #480

Open JessicaSchouten opened 2 years ago

JessicaSchouten commented 2 years ago

Two objects appear to be passed in for deletion when deleting a new batch.

Issue Description

When creating a new batch of redemption codes, the top drop down displays the batch you were originally on when you built the new batch rather than the new batch.

Example

I start on “Batch A 07152020” and create a new batch, “Batch 2 07182022.” When “Batch 07182022is created and displays, the top drop down menu will still display and act as “Batch A 07152020.”

If I now realize I messed up “Batch 2 07182022” and select Delete, it will delete both “Batch 2 07182022” AND the displayed/registered “Batch A 07152020.”

Desired Behavior

Creating a new batch should cause that newly created batch to become the only active batch selection. Any previous batch selections or defaults should be cleared.