Skip to content

Commit c85f07b

Browse files
committed
test(lint): fix
1 parent fd58a95 commit c85f07b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/DynamicScrollerItem.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ export default {
5050
5151
computed: {
5252
id () {
53-
if (this.vscrollData.simpleArray) return this.index;
54-
if (this.item.hasOwnProperty(this.vscrollData.keyField)) return this.item[this.vscrollData.keyField];
55-
throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`);
53+
if (this.vscrollData.simpleArray) return this.index
54+
// eslint-disable-next-line no-prototype-builtins
55+
if (this.item.hasOwnProperty(this.vscrollData.keyField)) return this.item[this.vscrollData.keyField]
56+
throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)
5657
},
5758
5859
size () {

0 commit comments

Comments
 (0)