Skip to content

Commit

Permalink
Fix collapse/expand on Obsidian 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Mar 21, 2023
1 parent 1b537bb commit d7a8e9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Tag Wrangler",
"author": "PJ Eby",
"authorUrl": "https://github.com/pjeby",
"version": "0.5.6",
"version": "0.5.7",
"minAppVersion": "0.15.9",
"description": "Rename, merge, toggle, and search tags from the tag pane",
"isDesktopOnly": false
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default class TagWrangler extends Plugin {
tagContainer = tagParent ? tagView.tagDoms["#" + tagParent.toLowerCase()]: tagView.root
;
function toggle(collapse) {
for(const tag of tagContainer.children) tag.setCollapsed(collapse);
for(const tag of tagContainer.children ?? tagContainer.vChildren.children) tag.setCollapsed(collapse);
}
menu.addSeparator()
.addItem(item("vertical-three-dots", "Collapse tags at this level", () => toggle(true )))
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"0.5.6": "0.15.9",
"0.5.7": "0.15.9",
"0.5.5": "0.15.9",
"0.5.3": "0.14.5",
"0.5.2": "0.13.19",
Expand Down

0 comments on commit d7a8e9d

Please sign in to comment.