Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix (note_map): map overflows when switching map type in ribbon
SiriusXTeec6f7336cd9
diff --git a/apps/client/src/widgets/note_map/NoteMap.tsx b/apps/client/src/widgets/note_map/NoteMap.tsxindex 1c503c3637..4e466a5638 100644--- a/apps/client/src/widgets/note_map/NoteMap.tsx+++ b/apps/client/src/widgets/note_map/NoteMap.tsx@@ -101,7 +101,7 @@ export default function NoteMap({ note, widgetMode, parentRef }: NoteMapProps) {useEffect(() => {if (!containerSize || !graphRef.current) return;graphRef.current.width(containerSize.width).height(containerSize.height);- }, [ containerSize?.width, containerSize?.height ]);+ }, [ containerSize?.width, containerSize?.height, mapType ]);// Fixing nodes when dragged.useEffect(() => {