From 02708d593fbc97697891a089606953a33333fe15 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 2 Feb 2025 17:03:27 +0200 Subject: [PATCH] feat(in-app-help): add default icon for notes --- src/services/in_app_help.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/services/in_app_help.ts b/src/services/in_app_help.ts index c1ce8c4bc..e2197e25b 100644 --- a/src/services/in_app_help.ts +++ b/src/services/in_app_help.ts @@ -39,7 +39,7 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt type: "doc", attributes: [] }; - let iconClass: string | undefined = undefined; + let iconClass: string = "bx bx-file"; // Handle attributes for (const attribute of noteMeta.attributes ?? []) { @@ -76,13 +76,11 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt } // Handle note icon - if (iconClass) { - item.attributes?.push({ - name: "iconClass", - value: iconClass, - type: "label" - }); - } + item.attributes?.push({ + name: "iconClass", + value: iconClass, + type: "label" + }); return item; }