mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
refactor: 💡 tree.ts refactor
This commit is contained in:
parent
a92b040958
commit
3e6cc1b449
@ -1,13 +1,11 @@
|
||||
import ws from "./ws.js";
|
||||
import utils from "./utils.js";
|
||||
import froca from "./froca.js";
|
||||
import hoistedNoteService from "../services/hoisted_note.js";
|
||||
import appContext from "../components/app_context.js";
|
||||
import hoistedNoteService from "../services/hoisted_note.js";
|
||||
import froca from "./froca.js";
|
||||
import utils from "./utils.js";
|
||||
import ws from "./ws.js";
|
||||
|
||||
/**
|
||||
* @returns {string|null}
|
||||
*/
|
||||
async function resolveNotePath(notePath: string, hoistedNoteId = "root") {
|
||||
|
||||
async function resolveNotePath(notePath: string, hoistedNoteId = "root"): Promise<string | null> {
|
||||
const runPath = await resolveNotePathToSegments(notePath, hoistedNoteId);
|
||||
|
||||
return runPath ? runPath.join("/") : null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user