File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ export class QueryAPI {
95
95
const files = this . apiInstance . app . vault . getMarkdownFiles ( ) ;
96
96
97
97
return files
98
- . map ( file => {
99
- const metadata = this . apiInstance . app . metadataCache . getFileCache ( file ) ;
98
+ . map ( f => {
99
+ const metadata = this . apiInstance . app . metadataCache . getFileCache ( f ) ;
100
100
if ( ! metadata ) {
101
101
return undefined ;
102
102
}
@@ -105,12 +105,12 @@ export class QueryAPI {
105
105
106
106
if (
107
107
links . some ( link => {
108
- const linkFile = this . apiInstance . app . metadataCache . getFirstLinkpathDest ( link . link , file . path ) ;
108
+ const linkFile = this . apiInstance . app . metadataCache . getFirstLinkpathDest ( link . link , f . path ) ;
109
109
return linkFile ?. path === file . path ;
110
110
} )
111
111
) {
112
112
return {
113
- file : file ,
113
+ file : f ,
114
114
cache : metadata ,
115
115
tags : getAllTags ( metadata ) ?? [ ] ,
116
116
frontmatterTags : ( metadata ?. frontmatter ?. tags as string [ ] | undefined ) ?? [ ] ,
You can’t perform that action at this time.
0 commit comments