mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 21:09:50 +02:00
Generic Type support for classes
Fixed typos after refactor
This commit is contained in:
@@ -320,8 +320,8 @@ const drawClass = function(elem, classDef) {
|
||||
|
||||
let classTitleString = classDef.id;
|
||||
|
||||
if (classDef.genericType !== undefined && classDef.genericType !== '') {
|
||||
classTitleString += '<' + classDef.genericType + '>';
|
||||
if (classDef.type !== undefined && classDef.type !== '') {
|
||||
classTitleString += '<' + classDef.type + '>';
|
||||
}
|
||||
|
||||
// add class title
|
||||
|
Reference in New Issue
Block a user