Starcounter / HelloWorld

Sample Starcounter application that shows CRUD operations with Palindrom (HTML+JSON-Patch client)
0 stars 7 forks source link

List of already created expenses is not rendered #36

Closed tomalec closed 7 years ago

tomalec commented 7 years ago

Once I have added some expenses to http://localhost:8080/HelloWorld (step 6) and reload the page, my expenses are no longer there.

Is it a "know simplification" not to write too much code? If so, I find it pretty confusing as even though there are no expenses my balance is >0, and they will appear after clicking "Cancel" button.

expenses

Mackiovello commented 7 years ago

This issue is now fixed both in the tutorial and in the code on branch tutorial-20161130 that is now set to default.

It was as simple as changing if (person.Spendings == null) to if (person.Spendings != null)