mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-23 11:52:59 +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) o.source = Setting.value('appName');
|
||||||
if (isNew && !o.source_application) o.source_application = Setting.value('appId');
|
if (isNew && !o.source_application) o.source_application = Setting.value('appId');
|
||||||
|
|
||||||
|
//return super.save(o, options);
|
||||||
|
|
||||||
return super.save(o, options).then((result) => {
|
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)
|
// '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.
|
// 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++) {
|
for (let i = 0; i < newFolders.length; i++) {
|
||||||
let n = newFolders[i];
|
let n = newFolders[i];
|
||||||
if (n.id == action.folder.id) {
|
if (n.id == action.folder.id) {
|
||||||
newFolders[i] = action.folder;
|
newFolders[i] = Object.assign(newFolders[i], action.folder);
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user