From 3d15aeae58224ac8716dd58938458e89af9bf7a0 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 7 Oct 2023 23:02:33 +0300 Subject: [PATCH] def value --- src/services/cloning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/cloning.js b/src/services/cloning.js index ed1c24214..4d6603373 100644 --- a/src/services/cloning.js +++ b/src/services/cloning.js @@ -7,7 +7,7 @@ const BBranch = require('../becca/entities/bbranch'); const becca = require("../becca/becca"); const log = require("./log"); -function cloneNoteToParentNote(noteId, parentNoteId, prefix) { +function cloneNoteToParentNote(noteId, parentNoteId, prefix = null) { if (!(noteId in becca.notes) || !(parentNoteId in becca.notes)) { return { success: false, message: 'Note cannot be cloned because either the cloned note or the intended parent is deleted.' }; }