Skip to content

Build your personal knowledge base with Trilium Notes

use only one label for icon class, fixes #1791

zadam9139c597e549
diff --git a/src/public/app/entities/note_short.js b/src/public/app/entities/note_short.js
index 1cc4fd376c..884b1d98a8 100644
--- a/src/public/app/entities/note_short.js
+++ b/src/public/app/entities/note_short.js
@@ -359,7 +359,7 @@ class NoteShort {
const workspaceIconClass = this.getWorkspaceIconClass();
if (iconClassLabels.length > 0) {
- return iconClassLabels.map(l => l.value).join(' ');
+ return iconClassLabels[0].value;
}
else if (workspaceIconClass) {
return workspaceIconClass;