I am trying to open a component as a popup in edit Mode (for editing the data). I have created a function using async await. I am first calling the API & then setting a stat