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:
Vincenzo Mitchell Barroso 2026-06-20 20:05:25 +02:00 committed by GitHub
commit b0c9b09bf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)) {