We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My application allows users to create nodes, links them together, edit them, etc.
But when the text of a node is empty, then mermaid crashes. So to avoid that, I edited the buildNode(item) method as such (see end of the method) :
buildNode(item)
buildNode(item) { let edge = !item.edgeType ? this.edges.find(e => { return e.type === "default"; }) : this.edges.find(e => { return e.type === item.edgeType; }); let text = item.text != '' ? item.text : ' - ' return `${item.id}${edge.open}${text}${edge.close}`; },
Maybe it could be nice to add something like that in your library to prevent crashes ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My application allows users to create nodes, links them together, edit them, etc.
But when the text of a node is empty, then mermaid crashes. So to avoid that, I edited the
buildNode(item)
method as such (see end of the method) :Maybe it could be nice to add something like that in your library to prevent crashes ?
The text was updated successfully, but these errors were encountered: