Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not run schedule actions if there are no items #318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Emerson
Copy link

@Emerson Emerson commented Mar 6, 2020

Outlined the problem in #317. This is a simple fix that has resolved the issue for me and still passes all tests. Happy to put in a little more work on this, but would need some guidance on where to look 馃憖.

@@ -181,6 +181,7 @@ const VerticalCollection = Component.extend({
run(() => {
const items = this.get('items');
const keyPath = this.get('key');
if (!items || items.length === 0) { return; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also not fire below if index exceeds the bounds of length. Otherwise this LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants