I am trying to use the new async features and I hope solving my problem will help others in the future. This is my code which is working:
async function as
This is a quicker fix in one-liner.
Hope this will help.
// WAIT FOR 200 MILISECONDS TO GET DATA // await setTimeout(()=>{}, 200);