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/only run notes loaded when notes loaded #1680

Merged
merged 3 commits into from
Oct 30, 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 @@ -13,6 +13,7 @@

- Rework WordPress.com signin to prevent infinite looping and login failures [#1627](https://github.com/Automattic/simplenote-electron/pull/1627)
- Update link to release-notes in updater config: CHANGELOG -> RELEASE_NOTES
- Stop showing that there are no notes when initially loading notes from the server. [#1680](https://github.com/Automattic/simplenote-electron/pull/1680)

## [v1.9.1]

Expand Down
4 changes: 3 additions & 1 deletion lib/flux/app-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ export const actionMap = new ActionMap({
cursor.continue();
} else {
debug(`noteCount: ${notes.length}`);
dispatch(this.action('notesLoaded', { notes: notes }));
if (notes.length) {
dispatch(this.action('notesLoaded', { notes: notes }));
}
}
};
});
Expand Down