diff --git a/src/ApplyView.tsx b/src/ApplyView.tsx index a81f774..7273a4a 100644 --- a/src/ApplyView.tsx +++ b/src/ApplyView.tsx @@ -1,4 +1,4 @@ -import { TFile, View, WorkspaceLeaf } from 'obsidian' +import { View, WorkspaceLeaf } from 'obsidian' import { Root, createRoot } from 'react-dom/client' import ApplyViewRoot from './components/apply-view/ApplyViewRoot' @@ -27,7 +27,7 @@ export class ApplyView extends View { } getDisplayText() { - return `Applying: ${this.state?.file?.name ?? ''}` + return `Applying: ${this.state?.file ?? ''}` } async setState(state: ApplyViewState) { diff --git a/src/components/apply-view/ApplyViewRoot.tsx b/src/components/apply-view/ApplyViewRoot.tsx index e534d20..3dd1b4d 100644 --- a/src/components/apply-view/ApplyViewRoot.tsx +++ b/src/components/apply-view/ApplyViewRoot.tsx @@ -128,7 +128,7 @@ export default function ApplyViewRoot({
- Applying: {state?.file?.name ?? ''} + Applying: {state?.file ?? ''}