1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Fixed display issue when updating folder

This commit is contained in:
Laurent Cozic 2017-07-15 23:56:56 +01:00
parent 22cb2fdfbe
commit 4152fcec5e
2 changed files with 3 additions and 1 deletions

View File

@ -227,6 +227,8 @@ class Note extends BaseItem {
if (isNew && !o.source) o.source = Setting.value('appName');
if (isNew && !o.source_application) o.source_application = Setting.value('appId');
//return super.save(o, options);
return super.save(o, options).then((result) => {
// 'result' could be a partial one at this point (if, for example, only one property of it was saved)
// so call this.preview() so that the right fields are populated.

View File

@ -197,7 +197,7 @@ const reducer = (state = defaultState, action) => {
for (let i = 0; i < newFolders.length; i++) {
let n = newFolders[i];
if (n.id == action.folder.id) {
newFolders[i] = action.folder;
newFolders[i] = Object.assign(newFolders[i], action.folder);
found = true;
break;
}