TypeError when using Mermaid widgets on click action: Cannot read properties of undefined (reading props) TypeError

0
I am using the Mermaid widget in an application. The Mermaid graph has an on click action (that opens a link) on each node. When I run the app locally and click on a graph node, the link works, but this error appears in the console: Cannot read properties of undefined (reading 'props') TypeError: Cannot read properties of undefined (reading 'props')     at ./src/MermaidForMendix.tsx.MermaidForMendix.onClickHandler (http://localhost:8080/widgets/siemens%20ag/mermaidformendix/MermaidForMendix.js?637909025396312302:1627:18)     at Object.ze (http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:16046)     at Ze (http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:16200)     at http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:34378     at ki (http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:34472)     at Oi (http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:34886)     at http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:40509     at Pe (http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:115741)     at http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:36342     at Ii (http://localhost:8080/mxclientsystem/mxui/mxui.js?637909025396312302:39:36372)   A new error like this appears in the console each time I click a node. Does anyone know what may be causing this issue?
asked
0 answers