diff --git a/src/main.ts b/src/main.ts index 29464d4..aa03ed5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -111,10 +111,7 @@ class TimekeepComponent extends MarkdownRenderChild { this.onRenameEvent = this.vault.on( "rename", (file: TAbstractFile, oldName: string) => { - if ( - file instanceof TFile && - oldName == this.context.sourcePath - ) { + if (file instanceof TFile && oldName == this.fileSourcePath) { this.fileSourcePath = file.path; } }