Merge branch 'feature/extra_bugfixes' of https://github.com/TriliumNext/Trilium into feature/extra_bugfixes

This commit is contained in:
Elian Doran
2026-04-07 20:52:26 +03:00
3 changed files with 3 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { createContext,Fragment, h, VNode } from "preact";
import { createContext, Fragment, h, VNode } from "preact";
import * as hooks from "preact/hooks";
import ActionButton from "../widgets/react/ActionButton";

View File

@@ -87,8 +87,8 @@ export default class RelationMapApi {
);
if (exists) return false;
await server.remove(`notes/${relation.sourceNoteId}/relations/${relation.name}/to/${relation.targetNoteId}`);
await server.put(`notes/${relation.sourceNoteId}/relations/${newName}/to/${relation.targetNoteId}`);
await server.remove(`notes/${relation.sourceNoteId}/relations/${relation.name}/to/${relation.targetNoteId}`);
this.onDataChange(true);
return true;
}

View File

@@ -621,7 +621,7 @@ function BackendScriptApi(this: Api, currentNote: BNote, apiParams: ApiParams) {
}
const parentNoteId = opts.isVisible ? "_lbVisibleLaunchers" : "_lbAvailableLaunchers";
const noteId = `al_${ opts.id}`;
const noteId = `al_${opts.id}`;
const launcherNote =
becca.getNote(noteId) ||
@@ -699,7 +699,6 @@ function BackendScriptApi(this: Api, currentNote: BNote, apiParams: ApiParams) {
return `!@#Function: ${p.toString()}`;
}
return p;
});
}
};