mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 08:07:04 +02:00
Merge branch 'feature/extra_bugfixes' of https://github.com/TriliumNext/Trilium into feature/extra_bugfixes
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user