1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +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.