Skip to content

Commit cb44ad0

Browse files
committed
refactor: - Remove unnecessary description parameter
1 parent 21ac619 commit cb44ad0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Renderer/TaskLineRenderer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,13 @@ export class TaskLineRenderer {
271271
task: Task,
272272
) {
273273
if (component === TaskLayoutComponent.Description) {
274-
return await this.renderDescription(componentString, task, span);
274+
return await this.renderDescription(task, span);
275275
}
276276
span.innerHTML = componentString;
277277
}
278278

279-
private async renderDescription(description: string, task: Task, span: HTMLSpanElement) {
280-
description = GlobalFilter.getInstance().removeAsWordFromDependingOnSettings(description);
279+
private async renderDescription(task: Task, span: HTMLSpanElement) {
280+
let description = GlobalFilter.getInstance().removeAsWordFromDependingOnSettings(task.description);
281281

282282
const { debugSettings } = getSettings();
283283
if (debugSettings.showTaskHiddenData) {

0 commit comments

Comments
 (0)