mirror of
https://github.com/signynt/virtual-content.git
synced 2026-07-22 05:46:44 +00:00
Merge pull request #64 from garrett-is-a-swann/feature-current-file-dataview-syntax
feature: Pass `file.path` to `dv.query` for more complete support.
This commit is contained in:
commit
b0c9b09bf6
1 changed files with 1 additions and 1 deletions
2
main.ts
2
main.ts
|
|
@ -2722,7 +2722,7 @@ export default class VirtualFooterPlugin extends Plugin {
|
|||
}
|
||||
|
||||
// Execute the query against the active file
|
||||
const results = await dataviewApi.query(query);
|
||||
const results = await dataviewApi.query(query, file.path);
|
||||
|
||||
// Dataview API returns a Success object with a 'successful' flag and 'value' property
|
||||
if (!results || !results.successful || !results.value || !Array.isArray(results.value.values)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue