Catch null items in getItemId

This commit is contained in:
trading_peter 2025-05-07 12:12:28 +02:00
parent c5c1a17c8b
commit fa75b5bc59
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@tp/tp-table",
"version": "1.3.3",
"version": "1.3.4",
"description": "",
"main": "tp-table.js",
"scripts": {

View File

@ -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) {