feat(collection/presentation): react to color changes

This commit is contained in:
Elian Doran 2025-10-17 21:38:32 +03:00
parent ceedcb1a2c
commit 3ff5ba79f6
No known key found for this signature in database

View File

@ -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();
}
});