No data or undefined when call from the frontend

big thank you for your advice. All this mess (on my side), was because I forget to initialize some input parameter.