Skip to content

Commit 06d3910

Browse files
committed
Revert assertion to catch invalid scroll events in test
1 parent 4fa9a70 commit 06d3910

File tree

1 file changed

+0
-3
lines changed
  • addon/components/collection-scroll-view

1 file changed

+0
-3
lines changed

addon/components/collection-scroll-view/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { cached } from 'ember-cached-decorator-polyfill';
44
import { tracked } from '@glimmer/tracking';
55
import { action } from '@ember/object';
66
import { next, schedule } from '@ember/runloop';
7-
import { assert as emberAssert } from '@ember/debug';
87
import { ref } from 'ember-ref-bucket';
98

109
/* A component which integrates a ScrollView with ember-collection */
@@ -129,8 +128,6 @@ export default class CollectionScrollView extends Component {
129128
if (itemIndex >= 0) {
130129
let { y } = this.cellLayout.positionAt(itemIndex);
131130
scrollViewApi.scrollTo(y + this.headerHeight, true);
132-
} else {
133-
emberAssert(`item with ID ${id} not found`, false);
134131
}
135132
}
136133
}

0 commit comments

Comments
 (0)