From 08901909caa38ca92fcde8647ec742494d88d854 Mon Sep 17 00:00:00 2001 From: Maximilian Giller <m.giller@tu-bs.de> Date: Thu, 28 Jul 2022 00:01:46 +0200 Subject: [PATCH] Fixes rendering of node icon --- src/editor/js/components/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/js/components/editor.tsx b/src/editor/js/components/editor.tsx index 9c0dd67..5ae9121 100644 --- a/src/editor/js/components/editor.tsx +++ b/src/editor/js/components/editor.tsx @@ -264,7 +264,7 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> { const imageSize = 12; if (node.icon !== undefined) { const img = new Image(); - img.src = node.icon.link; + img.src = node.icon; ctx.drawImage( img, -- GitLab