mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
detect existing attachment in target note
This commit is contained in:
@@ -29,7 +29,7 @@ class MobileDetailMenuWidget extends BasicWidget {
|
||||
}
|
||||
else if (command === "delete") {
|
||||
const notePath = appContext.tabManager.getActiveContextNotePath();
|
||||
const branchId = await treeService.getBranchIdFromNotePath(notePath);
|
||||
const branchId = await treeService.getBranchIdFromUrl(notePath);
|
||||
|
||||
if (!branchId) {
|
||||
throw new Error(`Cannot get branchId for notePath '${notePath}'`);
|
||||
|
||||
Reference in New Issue
Block a user