diff --git a/package.json b/package.json index bfe375a..2c07c8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-table", - "version": "1.3.3", + "version": "1.3.4", "description": "", "main": "tp-table.js", "scripts": { diff --git a/tp-table.js b/tp-table.js index 09f43dc..e684429 100644 --- a/tp-table.js +++ b/tp-table.js @@ -309,7 +309,7 @@ export class TpTable extends DomQuery(LitElement) { // Override this to change how the table derives item ids. getItemId(item) { - return item._id || item.id; + return item?._id || item?.id; } scrollToIndex(idx, position) {