get-parent-note-id should check if the note exists first.

This commit is contained in:
Feufochmar 2022-05-22 15:45:13 +02:00
parent 00e7867817
commit 2c2ed3448e
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@
; Get the id of the parent of a note
(define (get-parent-note-id n)
(hierarchy-parent-of (instance-identifier n)))
(and n (hierarchy-parent-of (instance-identifier n))))
; Get the identifier of a note
(define (note-id n)