We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea48257 commit 28791d7Copy full SHA for 28791d7
src/Renderer/QueryRenderer.ts
@@ -150,7 +150,11 @@ class QueryRenderChild extends MarkdownRenderChild {
150
);
151
152
this.registerEvent(
153
- this.app.vault.on('rename', (tFile: TAbstractFile, _oldPath: string) => {
+ this.app.vault.on('rename', (tFile: TAbstractFile, oldPath: string) => {
154
+ if (oldPath !== this.queryResultsRenderer.filePath) {
155
+ return;
156
+ }
157
+
158
let fileCache: CachedMetadata | null = null;
159
if (tFile && tFile instanceof TFile) {
160
fileCache = this.app.metadataCache.getFileCache(tFile);
0 commit comments