obsidian-text-expand icon indicating copy to clipboard operation
obsidian-text-expand copied to clipboard

$searchresult sequence broken in obsidian 1.0

Open pete-may opened this issue 2 years ago • 1 comments

In new Obsidian release (+1.0) I tried to use $searchresult in a query but didn't obtain any results. Then saw this in the developer tools:

Screenshot 2022-12-09 at 6 52 27 AM

The error came from this line: https://github.com/mrjackphil/obsidian-text-expand/blob/d896e5aff557b37daa566c55c147a6b81fee5717/src/sequences/sequences.ts#L276

I changed the line to:

return results.vChildren.children.map(matchedFile => { 

and that restored functionality.

pete-may avatar Dec 09 '22 11:12 pete-may

Thank you, saved my confusion

wenbopeng avatar Dec 20 '23 04:12 wenbopeng