From c8b7322f1e3f918fa63f964278eeac2fcea69f81 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 15 Oct 2025 22:29:34 +0300 Subject: [PATCH] feat(collection/presentation): react to tree changes --- apps/client/src/widgets/collections/presentation/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/collections/presentation/index.tsx b/apps/client/src/widgets/collections/presentation/index.tsx index 1d086fef7..5760fd2dd 100644 --- a/apps/client/src/widgets/collections/presentation/index.tsx +++ b/apps/client/src/widgets/collections/presentation/index.tsx @@ -17,14 +17,14 @@ const stylesheets = [ slideCustomStylesheet ].map(stylesheet => stylesheet.replace(/:root/g, ":host")); -export default function PresentationView({ note }: ViewModeProps<{}>) { +export default function PresentationView({ note, noteIds }: ViewModeProps<{}>) { const [ presentation, setPresentation ] = useState(); const containerRef = useRef(null); const apiRef = useRef(null); useLayoutEffect(() => { buildPresentationModel(note).then(setPresentation); - }, [ note ]); + }, [ note, noteIds ]); return presentation && ( <>