Skip to content

Commit

Permalink
TextContent error (#141)
Browse files Browse the repository at this point in the history
* textContent error

* 1.10.8
  • Loading branch information
dvargas92495 authored Aug 13, 2023
1 parent fefee40 commit e2fe5c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "query-builder",
"version": "1.10.7",
"version": "1.10.8",
"description": "Introduces new user interfaces for building queries in Roam",
"main": "./build/main.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/runQueryTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const runQueryTools = (extensionAPI: OnloadArgs["extensionAPI"]) => {
const bTitle = (b.getElementsByClassName(
"rm-ref-page-view-title"
)[0] || b.querySelector(".rm-zoom-item-content")) as HTMLDivElement;
return sortBy(aTitle.textContent || "", bTitle.textContent || "");
return sortBy(aTitle?.textContent || "", bTitle?.textContent || "");
});
refsInView.forEach((r) => refContainer.appendChild(r));
}
Expand Down

0 comments on commit e2fe5c7

Please sign in to comment.