TBD54566975 / incubating-web5-labs

Apache License 2.0
25 stars 16 forks source link

TODO App "Toggle" always completes top line item #51

Closed ALRubinger closed 1 year ago

ALRubinger commented 1 year ago

This is not on main, but on upstream branch issue-47/update-sdk:

I clicked ✅ on 3:

image
ALRubinger commented 1 year ago

Found while debugging, when clicking a ✅:

p.vue:148 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'dateCreated')
    at Proxy.toggleTodoComplete (App.vue:148:32)
    at onClick (App.vue:185:22)
    at callWithErrorHandling (runtime-core.esm-bundler.js:157:22)
    at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:166:21)
    at HTMLDivElement.invoker (runtime-dom.esm-bundler.js:345:9)
t
kirahsapong commented 1 year ago

This commit resolves the issue of not targeting the correct todo item. Still to do is identify why queried records don't seem to reflect changes made to an updated record. Updating a record returns the expected updated record, but querying seems to return records in their initial state.

ALRubinger commented 1 year ago

This commit resolves the issue of not targeting the correct todo item. Still to do is identify why queried records don't seem to reflect changes made to an updated record. Updating a record returns the expected updated record, but querying seems to return records in their initial state.

Rebased as c929cc3; works great!