mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Revert change to if
This commit is contained in:
parent
e3e12bbc78
commit
0c2b5d0d79
@ -214,7 +214,7 @@ export const addClass = function (ids, style) {
|
||||
classes[id] = { id, styles: [], textStyles: [] };
|
||||
}
|
||||
|
||||
if (style) {
|
||||
if (style !== undefined && style !== null) {
|
||||
style.forEach(function (s) {
|
||||
if (s.match('color')) {
|
||||
const newStyle = s.replace('fill', 'bgFill').replace('color', 'fill');
|
||||
|
Loading…
x
Reference in New Issue
Block a user