metasfresh-webui-frontend-legacy icon indicating copy to clipboard operation
metasfresh-webui-frontend-legacy copied to clipboard

After an element is deleted from view, the selection is made for selectedId 1

Open metas-rc opened this issue 7 years ago • 2 comments

Is this a bug or feature request?

  • Bug

What is the current behavior?

  • After an element is deleted from the view by a process, the selection is still made for the id 1 and the actions for the deleted element are displayed as available, even if now there is no element selected.

Which are the steps to reproduce?

  • Go to Handling Unit editor

  • Select an Active CU

  • Go to action transform, select "Move to new CU". This action deletes the old CU and created a new one. image

  • After the process is run, the selection is first made for the old element which doesn'exist anymore: image

  • And then the selection is made for selectedId= 1 image

  • The actions are still available even if there is no element selected

  • If I click on the action Transform i get an error because the ID 1 is not found: image

What is the expected or desired behavior?

  • if no elements are selected, the selectedId shall not be 1
  • if no elements are selected the actions shall not be available. In the HU editor there is no action available without a selection.

metas-rc avatar Jan 09 '18 12:01 metas-rc

@teosarca @metas-ts When I was trying to reproduce this, picking Transform action caused this error :

screen shot 2018-04-05 at 17 39 34

siemiatj avatar Apr 05 '18 15:04 siemiatj

This is still throwing an error ^^

siemiatj avatar May 31 '18 22:05 siemiatj