Skip to content

Commit 7e48e2a

Browse files
committed
Fix: Optimized code structure
1 parent 3205eae commit 7e48e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context/stylesheets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export class StyleSheets {
214214
console.log(cssValue, this.styleSheets)
215215
const res = this.getCssValue(cssValue)
216216
if (res) {
217-
cssValue = cssValue.replace(cssValue, res)
217+
return cssValue.replace(cssValue, res) || undefined
218218
}
219219
})
220220
}

0 commit comments

Comments
 (0)