mProjectsCode / obsidian-media-db-plugin

A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.
GNU General Public License v3.0
243 stars 28 forks source link

Nothing rendered in Preview Modal #111

Closed gamephreak13 closed 10 months ago

gamephreak13 commented 10 months ago

Describe the bug The preview modal only displays dataviewjs errors.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'add Media DB Entry (game)'
  2. Search 'Roadwarden'
  3. Scroll down to 'Roadwarden'
  4. Preview Modal displays dataviewjs error blocks.

Expected behavior A preview of how the note will look

Screenshots image

Occurs on

Plugin version 0.5.2

Additional context I am using the templates provided by mProjectsCode.

mProjectsCode commented 10 months ago

i am passing an empty string as the file path to the markdown render function (as recommended by the obsidian devs), since there isn't a file for this content yet. I guess dataview does not like that and errors out. There is nothing i can do about this.