Catch null items in getItemId
This commit is contained in:
parent
c5c1a17c8b
commit
fa75b5bc59
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tp/tp-table",
|
||||
"version": "1.3.3",
|
||||
"version": "1.3.4",
|
||||
"description": "",
|
||||
"main": "tp-table.js",
|
||||
"scripts": {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user