mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
small fixes
This commit is contained in:
parent
46f40ee534
commit
29713de6cd
@ -63,8 +63,6 @@ class Attribute extends AbstractEntity {
|
||||
}
|
||||
|
||||
init() {
|
||||
this.validate();
|
||||
|
||||
if (this.attributeId) {
|
||||
this.becca.attributes[this.attributeId] = this;
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ function updateNoteAttribute(req) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (body.type === 'relation' && !body.value.trim()) {
|
||||
if (body.type === 'relation' && !body.value?.trim()) {
|
||||
return {};
|
||||
}
|
||||
|
||||
@ -68,6 +68,8 @@ function updateNoteAttribute(req) {
|
||||
attribute.markAsDeleted();
|
||||
}
|
||||
|
||||
console.log(attribute);
|
||||
|
||||
attribute.save();
|
||||
|
||||
return {
|
||||
|
@ -209,7 +209,7 @@ function createLauncher({parentNoteId, launcherType, id}) {
|
||||
function resetLauncher(noteId) {
|
||||
const note = becca.getNote(noteId);
|
||||
|
||||
if (note.isLauncherConfig()) {
|
||||
if (note.isLaunchBarConfig()) {
|
||||
if (note) {
|
||||
if (noteId === '_lbRoot') {
|
||||
// deleting hoisted notes are not allowed, so we just reset the children
|
||||
|
Loading…
x
Reference in New Issue
Block a user