Skip to content

Build your personal knowledge base with Trilium Notes

feat(collection/presentation): react to color changes

Elian Doran3ff5ba79f66f
diff --git a/apps/client/src/widgets/collections/presentation/index.tsx b/apps/client/src/widgets/collections/presentation/index.tsx
index 5fe8f94ff6..b079522c68 100644
--- a/apps/client/src/widgets/collections/presentation/index.tsx
+++ b/apps/client/src/widgets/collections/presentation/index.tsx
@@ -25,7 +25,8 @@ export default function PresentationView({ note, noteIds }: ViewModeProps<{}>) {
}
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
- if (loadResults.getNoteIds().find(noteId => noteIds.includes(noteId))) {
+ if (loadResults.getNoteIds().find(noteId => noteIds.includes(noteId)) ||
+ loadResults.getAttributeRows().find(attr => attr.noteId && attr.name?.startsWith("slide:") && noteIds.includes(attr.noteId))) {
refresh();
}
});