[X] I searched for existing Bug Reports and found no similar reports.
Expected Behavior
Given a vault with #tags used in one document, dice: #tags\|link should always roll the same result.
Current behaviour
an error is thrown in the console when nothing is shown:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'file')
at v6.build (plugin:obsidian-dice-roller:500:616)
at v6.render (plugin:obsidian-dice-roller:472:4530)
at eval (plugin:obsidian-dice-roller:500:1413)
at e.tryTrigger (app.js:1:906862)
at e.trigger (app.js:1:906795)
at v6.getFiles (plugin:obsidian-dice-roller:500:190)
Reproduction
Launch obsidian in sandbox mode
install Dataview plugin
install Dice Roller plugin
create a new note and type dice: #tags\|link
clicking the dice to reroll will randomly roll [[Task]] and nothing approximately 50/50.
Which Operating Systems are you using?
[ ] Android
[ ] iPhone/iPad
[ ] Linux
[ ] macOS
[X] Windows
Obsidian Version Check
1.3.5
Plugin Version
9.0.0 and 9.2.0
Confirmation
[X] I have disabled all other plugins and the issue still persists.
Check for existing bug reports before submitting.
Expected Behavior
Given a vault with #tags used in one document,
dice: #tags\|link
should always roll the same result.Current behaviour
an error is thrown in the console when nothing is shown:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'file') at v6.build (plugin:obsidian-dice-roller:500:616) at v6.render (plugin:obsidian-dice-roller:472:4530) at eval (plugin:obsidian-dice-roller:500:1413) at e.tryTrigger (app.js:1:906862) at e.trigger (app.js:1:906795) at v6.getFiles (plugin:obsidian-dice-roller:500:190)
Reproduction
dice: #tags\|link
Which Operating Systems are you using?
Obsidian Version Check
1.3.5
Plugin Version
9.0.0 and 9.2.0
Confirmation
Possible solution
Array indexing off by 1?