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:
parent
22cb2fdfbe
commit
4152fcec5e
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user