blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
6.9k stars 407 forks source link

String literal being incorrectly coerced #2436

Open code-monki opened 2 weeks ago

code-monki commented 2 weeks ago

What happened?

I have a variable range defined in the frontmatter as "10m". When I use the inline query, =this.range, it produces 10 minutes, not 10m. This is unexpected as the range is measured in meters, not minutes. I have not found a workaround for this issue and having to set the literal as "10 meters" has an impact on the table layout I'm using.

DQL

No response

JS

No response

Dataview Version

0.5.67

Obsidian Version

1.6.7

OS

MacOS