fix(client/ts): build error

This commit is contained in:
Elian Doran 2024-12-21 23:16:01 +02:00
parent cde74faca9
commit be93380d03
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ interface DuplicateResponse {
note: FNote;
}
async function createNote(parentNotePath: string, options: CreateNoteOpts = {}) {
async function createNote(parentNotePath: string | undefined, options: CreateNoteOpts = {}) {
options = Object.assign({
activate: true,
focus: 'title',

View File

@ -149,7 +149,7 @@ function getParentProtectedStatus(node: Node) {
return hoistedNoteService.isHoistedNode(node) ? false : node.getParent().data.isProtected;
}
function getNoteIdFromUrl(urlOrNotePath: string) {
function getNoteIdFromUrl(urlOrNotePath: string | undefined) {
if (!urlOrNotePath) {
return null;
}