Skip to content

Commit 97e92e0

Browse files
committed
refactor: - replace strings with values from TaskLayoutComponent
1 parent c8f39f9 commit 97e92e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Renderer/TaskLineRenderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class TaskLineRenderer {
208208
component: TaskLayoutComponent,
209209
task: Task,
210210
) {
211-
if (component === 'description') {
211+
if (component === TaskLayoutComponent.Description) {
212212
componentString = GlobalFilter.getInstance().removeAsWordFromDependingOnSettings(componentString);
213213

214214
const { debugSettings } = getSettings();
@@ -270,7 +270,7 @@ export class TaskLineRenderer {
270270
else return null;
271271
}
272272

273-
if (component === 'description') {
273+
if (component === TaskLayoutComponent.Description) {
274274
const tags = internalSpan.getElementsByClassName('tag');
275275
for (let i = 0; i < tags.length; i++) {
276276
const tagName = tags[i].textContent;

0 commit comments

Comments
 (0)