As @luukschoen said, don’t create needless Promises. Also, stop abusing any. Your main problem here is that you are telling the template to loop across something that is not an array. Initialize reference to an empty array.