Possible reasons:
The for loop is called before showingEventList is assigned with an array.
Or the method getOldEvents is returning a single element in actionArray. So the actionArray.map is creating a single object instead of an array.