nathonius / obsidian-collapse-all

MIT License
92 stars 2 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'length') #33

Closed mnaoumov closed 2 years ago

mnaoumov commented 2 years ago
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at eval (plugin:obsidian-collapse-all-plugin:367:46)
    at Array.every (<anonymous>)
    at TagPaneProvider.tagsAreCollapsed (plugin:obsidian-collapse-all-plugin:367:22)
    at TagPaneProvider.allCollapsed (plugin:obsidian-collapse-all-plugin:355:21)
    at TagPaneProvider.updateButtonIcon (plugin:obsidian-collapse-all-plugin:208:39)
    at eval (plugin:obsidian-collapse-all-plugin:173:18)
    at Array.forEach (<anonymous>)
    at TagPaneProvider.updateButtonIcons (plugin:obsidian-collapse-all-plugin:172:21)
    at eval (plugin:obsidian-collapse-all-plugin:485:34)
    at Array.forEach (<anonymous>)
nathonius commented 2 years ago

Can you give some context on where you see this?

mnaoumov commented 2 years ago

I didn't quite get when is that happening. I am currently debugging it. I found how to fix it already but now I am checking why did it happen at first place. Then I will send a PR

nathonius commented 2 years ago

@mnaoumov I'm unable to reproduce the issue. In what scenario do you see this? Are you on an insiders version of Obsidian?

mnaoumov commented 2 years ago

Yes, I am on Insiders version 0.15.5

nathonius commented 2 years ago

Released in 1.5.2. Thanks for the PR!