Mermaid previews generate 'e.ForEach' type errors on some node shapes
Summary
Some of the more fancier node shapes generate:
Encountered an error while rendering: TypeError: e.forEach is not a function
when connecting
Steps to reproduce
Create a markdown document, write some mermaid code, click the 'preview' button (or commit and see the rendered doc) or put it in an issue, such as this one :)
Example Project
flowchart TD
id1[ok]
id2[[fail]]
id1 --> id2
id1 --> id3[/fail/]
id3 --> id1
What is the current bug behavior?
(further more, the error doesn't go away until clicked away :S)
What is the expected correct behavior?
No error and it is rendered properly, as can be seen in the live mermaid editor
Output of checks
This bug happens on GitLab.com
Possible fixes
This may be related to running an older version of mermaid-js? otherwise it is integration between the two components.