Skip to content

Commit

Permalink
fix: adapt to new Hoodie APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Mar 30, 2017
1 parent 38e5cea commit 6b9fe7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions public/assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ $itemsList.addEventListener('click', function (event) {
break

case 'remove':
hoodie.store.remove({
id: id
})
hoodie.store.remove(id)
break
case 'update':
amount = row.querySelector('input[name=amount]').value
Expand All @@ -105,7 +103,7 @@ function render (items) {
$itemsList.innerHTML = items
.sort(orderByCreatedAt)
.map(function (item) {
return '<tr data-id="' + item.id + '">' +
return '<tr data-id="' + item._id + '">' +
'<td>' + escapeHtml(item.amount) + '</td>' +
'<td>' + escapeHtml(item.note) + '</td>' +
'<td><a href="#" data-action="edit">Edit</a></td>' +
Expand Down

0 comments on commit 6b9fe7a

Please sign in to comment.