return data.filter(orderItem => orderItem.order_id === {{ collectionView1.selectedItem.id }})
TypeError cannot read properties of null(id)
return data.filter(orderItem => orderItem.order_id === {{ collectionView1.selectedItem.id }})
TypeError cannot read properties of null(id)
Just from information You provided, seems to me, collectionView1.selectedItem.id is not selected.
If this is in console, then it will be always show this, if You haven't created some sort of check if "id" is actually passed trough on load.