mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 16:29:40 +02:00
Lint fixes
This commit is contained in:
@@ -373,8 +373,8 @@ export const addSubGraph = function (_id, list, _title) {
|
||||
let nodeList = []
|
||||
|
||||
nodeList = uniq(nodeList.concat.apply(nodeList, list))
|
||||
for(let i=0;i<nodeList.length;i++){
|
||||
if(nodeList[i][0].match(/\d/)) nodeList[i] = 's' + nodeList[i];
|
||||
for (let i = 0; i < nodeList.length; i++) {
|
||||
if (nodeList[i][0].match(/\d/)) nodeList[i] = 's' + nodeList[i]
|
||||
}
|
||||
|
||||
id = id || ('subGraph' + subCount)
|
||||
|
Reference in New Issue
Block a user