Open plakitkelly opened 5 months ago
Overwriting works.
@KaarelKa for removing department FE should pass department_id
as an empty string.
@KaarelKa needs FE fix. https://drive.google.com/file/d/1TtAxaMFDcoabmVKNZRdfo3VvyAjLHKPT/view?usp=drive_link
Expected: Department should be removed from dropdown menu after getting the successful notification
Actual result: After refresh or reopen the page the department is still there
Saving department:![image](https://github.com/keeleinstituut/tv-tolkevarav/assets/130659408/da8b6d0f-733a-4d47-ab54-83a5bb4d47e5)
Saving empty option:![image](https://github.com/keeleinstituut/tv-tolkevarav/assets/130659408/ad9126f2-7183-4fa8-942f-76ef7832736b)
It still getting department from BE:![image](https://github.com/keeleinstituut/tv-tolkevarav/assets/130659408/80e1e8cb-5358-4d7d-81e4-f5595a4dbd23)
Saving empty option doesn't delete department from db