diff --git a/src/data-index/index.ts b/src/data-index/index.ts index fb1d0468..30a1d38c 100644 --- a/src/data-index/index.ts +++ b/src/data-index/index.ts @@ -81,7 +81,7 @@ export class FullIndex extends Component { } /** Trigger a metadata event on the metadata cache. */ - private trigger(...args: any[]): void { + public trigger(...args: any[]): void { this.metadataCache.trigger("dataview:metadata-change", ...args); } diff --git a/src/ui/views/task-view.tsx b/src/ui/views/task-view.tsx index c52750e6..4d753396 100644 --- a/src/ui/views/task-view.tsx +++ b/src/ui/views/task-view.tsx @@ -89,6 +89,7 @@ function TaskItem({ item }: { item: STask }) { ); } await rewriteTask(context.app.vault, _item, status, updatedText); + context.index.trigger("task-click", _item, status, updatedText) } context.app.workspace.trigger("dataview:refresh-views"); }