Revert change to if

This commit is contained in:
Sidharth Vinod 2023-06-18 13:13:40 +05:30
parent e3e12bbc78
commit 0c2b5d0d79
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 1 additions and 1 deletions

View File

@ -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');