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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Sort revisions by note version #1605

Merged
merged 2 commits into from
Oct 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Open new note automatically upon creation [1566](https://github.com/Automattic/simplenote-electron/issues/1566)
- Updated colors to use Color Studio, the color palette for Automattic products
- Fixes vertical spacing with nested markdown lists
- Fixes sort order on revision slider when the timestamps don't match the change sequence [#1605](https://github.com/Automattic/simplenote-electron/pull/1605)

## [v1.7.0](https://github.com/Automattic/simplenote-electron/releases/tag/v1.7.0) (2019-08-12)

Expand Down
3 changes: 1 addition & 2 deletions lib/revision-selector/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import Slider from '../components/slider';
import appState from '../flux/app-state';
import { updateNoteTags } from '../state/domain/notes';

const sortedRevisions = revisions =>
orderBy(revisions, 'data.modificationDate', 'asc');
const sortedRevisions = revisions => orderBy(revisions, 'version', 'asc');

export class RevisionSelector extends Component {
static propTypes = {
Expand Down