Skip to content

Conversation

@nathanielw
Copy link
Contributor

Fixes #983

Previously the sortByPin function was getting the pinned notes then preprending them to all the notes, pinned notes included, meaning there were duplicate items in the notes array. This caused the "Next Note" functionality to not always work correctly (if the next note was in fact a duplicate of the selected note).

This fix filters the notes into "pinned" and "unpinned" then concatenates them together, avoiding duplicates.

@kazup01 kazup01 requested a review from sota1235 November 1, 2017 05:56
@kazup01
Copy link
Member

kazup01 commented Nov 2, 2017

Hi @nathanielw , thank you for your contribution! We will check it soon.

Copy link
Contributor

@sota1235 sota1235 left a comment

Choose a reason for hiding this comment

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

LGTM

@sota1235
Copy link
Contributor

sota1235 commented Nov 4, 2017

@kazup01 Can you confirm how this PR works? If it is fine, please merge it.

@kazup01 kazup01 merged commit 5bd4a3f into BoostIO:master Nov 4, 2017
@kazup01
Copy link
Member

kazup01 commented Nov 4, 2017

I confirmed. @sota1235
Thank you for your contribution @nathanielw !

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.

Ctrl-J does not work on a pinned note

4 participants