Skip to content

Commit

Permalink
fix: use of non-declared variable (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny1291 authored Sep 2, 2024
1 parent e560e47 commit a629a3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/defaultRulesUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ export function addRules(UUIDSOfRulesToAdd, currentCSSRule, newDefaultRules) {
for (const UUIDOfRulesToAdd of UUIDSOfRulesToAdd) {
for (const newDefaultRule of newDefaultRules) {
if (newDefaultRule.UUID === UUIDOfRulesToAdd) {
const rule = newDefaultRule.rule
const name = getRuleName(rule)
currentCSSRule.push({ name, rule: newDefaultRule.rule, active: true, group: newDefaultRule.group})
currentCSSRule.push({ name, rule, active: true, group: newDefaultRule.group})
break
}
}
Expand Down

0 comments on commit a629a3c

Please sign in to comment.