mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
fix(client/ts): build error
This commit is contained in:
parent
cde74faca9
commit
be93380d03
@ -40,7 +40,7 @@ interface DuplicateResponse {
|
|||||||
note: FNote;
|
note: FNote;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createNote(parentNotePath: string, options: CreateNoteOpts = {}) {
|
async function createNote(parentNotePath: string | undefined, options: CreateNoteOpts = {}) {
|
||||||
options = Object.assign({
|
options = Object.assign({
|
||||||
activate: true,
|
activate: true,
|
||||||
focus: 'title',
|
focus: 'title',
|
||||||
|
@ -149,7 +149,7 @@ function getParentProtectedStatus(node: Node) {
|
|||||||
return hoistedNoteService.isHoistedNode(node) ? false : node.getParent().data.isProtected;
|
return hoistedNoteService.isHoistedNode(node) ? false : node.getParent().data.isProtected;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNoteIdFromUrl(urlOrNotePath: string) {
|
function getNoteIdFromUrl(urlOrNotePath: string | undefined) {
|
||||||
if (!urlOrNotePath) {
|
if (!urlOrNotePath) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user