Fixing id detection for snippets and database page selection.

This commit is contained in:
ruidajo 2022-10-07 14:28:02 -05:00
parent dd63f2f23e
commit 00112aadeb

View File

@ -25,7 +25,8 @@ LeDatabase >> addPageFromMarkdeep: markdeepDocTree [
snippets do: [ :snippet | page addSnippet: snippet ].
page children collect: [ :snippet |
(self hasBlockUID: (snippet uid))
ifTrue: [ ^ snippet page ]
ifTrue: [ ^ self pages detect: [ :pageTemp |
pageTemp includesSnippetUid: snippet uid ] ]
ifFalse: [
snippet database: self.
self registerSnippet: snippet ] ].