aidenlx / obsidian-icon-shortcodes

Obsidian Plugin: Insert emoji and custom icons with shortcodes
MIT License
143 stars 11 forks source link

Bug: Lost all icons after updating to latest version of Icon Shortcodes #33

Closed namtrah closed 2 years ago

namtrah commented 2 years ago

Not sure which version I was on, but after upgrading to latest (0.8.4) I received the following error and lost all my folder icons saved to my folders (by Florian Woelki https://github.com/FlorianWoelki/obsidian-icon-folder

loading Icon Shortcodes
VM221:42252 Uncaught (in promise) TypeError: Cannot destructure property 'basename' of 'app.workspace.getActiveFile(...)' as it is null.
    at instance$1 (eval at <anonymous> (app.js:1), <anonymous>:42252:8)
    at init (eval at <anonymous> (app.js:1), <anonymous>:3887:11)
    at new SideTree (eval at <anonymous> (app.js:1), <anonymous>:42317:3)
    at TreeView.draw (eval at <anonymous> (app.js:1), <anonymous>:42347:21)
    at refreshIndex (eval at <anonymous> (app.js:1), <anonymous>:35414:94)
    at async eval (eval at <anonymous> (app.js:1), <anonymous>:64349:17)
126app.js:1 Uncaught TypeError: Cannot read properties of null (reading 'basename')
    at eval (eval at <anonymous> (app.js:1), <anonymous>:42256:59)
    at t.e.tryTrigger (app.js:1)
    at t.e.trigger (app.js:1)
    at t.trigger (app.js:1)
    at t.activeLeafEvents (app.js:1)
    at a (app.js:1)

Opening in his github as well.