mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
share functionality WIP
This commit is contained in:
@@ -4,7 +4,7 @@ const AbstractEntity = require('./abstract_entity');
|
||||
const shareRoot = require("../../share_root");
|
||||
|
||||
class Branch extends AbstractEntity {
|
||||
constructor([branchId, noteId, parentNoteId, prefix, notePosition, isExpanded]) {
|
||||
constructor([branchId, noteId, parentNoteId, prefix, isExpanded]) {
|
||||
super();
|
||||
|
||||
/** @param {string} */
|
||||
@@ -15,8 +15,6 @@ class Branch extends AbstractEntity {
|
||||
this.parentNoteId = parentNoteId;
|
||||
/** @param {string} */
|
||||
this.prefix = prefix;
|
||||
/** @param {int} */
|
||||
this.notePosition = notePosition;
|
||||
/** @param {boolean} */
|
||||
this.isExpanded = !!isExpanded;
|
||||
|
||||
@@ -35,10 +33,6 @@ class Branch extends AbstractEntity {
|
||||
childNote.parentBranches.push(this);
|
||||
}
|
||||
|
||||
if (!parentNote) {
|
||||
console.log(this);
|
||||
}
|
||||
|
||||
if (!parentNote.children.includes(childNote)) {
|
||||
parentNote.children.push(childNote);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user