We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ba4bf commit a2f623cCopy full SHA for a2f623c
src/utils/homeCardIcons.ts
@@ -35,7 +35,7 @@ export function homeCardIcons(node: Root | RootContent, parent: Root | Element,
35
const iconNetworkDefaultPath = path.resolve(static_path, `assets/network.svg`);
36
const iconExist = fs.existsSync(iconPath);
37
let color = '';
38
- child.properties.style = (child.properties.style as string).replace(COLOR_REG, (str) => {
+ child.properties.style = (child.properties.style as string)?.replace(COLOR_REG, (str) => {
39
color = str.replace(COLOR_REG, '$2');
40
return str.replace(/(\);)/, '/ var(--bg-opacity)$1');
41
});
0 commit comments