Before reading complete file, the module function is returning empty array and calling next action d
Content
Hi,
I am reading file by calling a module function in file picker action . In module function , I am using promise and returning the array.
However, before the entire file is read , it is returning an empty array to the rest service which is defined after the module function.
Any solution to stop this behavior and run the action sequentially will be highly appreciated.
Regards,
Aishwarya
Version
VIsual Builder Version : 19.3.1.4
Tagged:
0