get-parent-note-id should check if the note exists first.
This commit is contained in:
parent
00e7867817
commit
2c2ed3448e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue