Ok, I figured it out:
The problem was that I initialized my tempState variable as an empty Object {}
. It works now by simply switching it to an empty Array []
. The saved data is now displayed correctly.
Anyhow, it would be interesting to know why formatDataAsArray()
is not working in above problem setting, or how to reformat such data accordingly for future cases.