mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-23 11:52:59 +02:00
Fixed regression
This commit is contained in:
parent
6ca0e6adcc
commit
55847fa22f
@ -539,6 +539,7 @@ class Note extends BaseItem {
|
|||||||
|
|
||||||
static async save(o, options = null) {
|
static async save(o, options = null) {
|
||||||
let isNew = this.isNew(o, options);
|
let isNew = this.isNew(o, options);
|
||||||
|
const isProvisional = options && !!options.provisional;
|
||||||
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');
|
||||||
|
|
||||||
@ -561,7 +562,7 @@ class Note extends BaseItem {
|
|||||||
this.dispatch({
|
this.dispatch({
|
||||||
type: 'NOTE_UPDATE_ONE',
|
type: 'NOTE_UPDATE_ONE',
|
||||||
note: note,
|
note: note,
|
||||||
provisional: !!options.provisional,
|
provisional: isProvisional,
|
||||||
});
|
});
|
||||||
|
|
||||||
if ('todo_due' in o || 'todo_completed' in o || 'is_todo' in o || 'is_conflict' in o) {
|
if ('todo_due' in o || 'todo_completed' in o || 'is_todo' in o || 'is_conflict' in o) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user