metasfresh-webui-frontend-legacy
metasfresh-webui-frontend-legacy copied to clipboard
After an element is deleted from view, the selection is made for selectedId 1
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.
-
After the process is run, the selection is first made for the old element which doesn'exist anymore:
-
And then the selection is made for selectedId= 1
-
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:
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.
@teosarca @metas-ts When I was trying to reproduce this, picking Transform
action caused this error :
This is still throwing an error ^^