mirror of
https://github.com/zadam/trilium.git
synced 2026-07-15 19:52:28 +02:00
fix(react/type_widget): mind map attachment incorrect
This commit is contained in:
@@ -26,7 +26,7 @@ export default function MindMap({ note, ntxId }: TypeWidgetProps) {
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
const spacedUpdate = useEditorSpacedUpdate({
|
||||
note,
|
||||
getData: () => {
|
||||
getData: async () => {
|
||||
if (!apiRef.current) return;
|
||||
return {
|
||||
content: apiRef.current.getDataString(),
|
||||
@@ -35,7 +35,7 @@ export default function MindMap({ note, ntxId }: TypeWidgetProps) {
|
||||
role: "image",
|
||||
title: "mindmap-export.svg",
|
||||
mime: "image/svg+xml",
|
||||
content: apiRef.current.exportSvg().text(),
|
||||
content: await apiRef.current.exportSvg().text(),
|
||||
position: 0
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user