mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
fix putting new attribute correctly into becca
This commit is contained in:
@@ -4,8 +4,6 @@ const becca = require("../becca/becca");
|
||||
const cloningService = require("./cloning");
|
||||
const branchService = require("./branches");
|
||||
const utils = require("./utils");
|
||||
const dayjs = require("dayjs");
|
||||
const cls = require("./cls.js");
|
||||
|
||||
const ACTION_HANDLERS = {
|
||||
addLabel: (action, note) => {
|
||||
@@ -77,6 +75,8 @@ const ACTION_HANDLERS = {
|
||||
const targetParentNote = becca.getNote(action.targetParentNoteId);
|
||||
|
||||
if (!targetParentNote) {
|
||||
log.info(`Cannot execute moveNote because note ${action.targetParentNoteId} doesn't exist.`);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user