fixed bug when adding a rule in realtime
This commit is contained in:
parent
0b3abbe6a7
commit
3264837327
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ export default createStore({
|
|||
},
|
||||
|
||||
addRule: (state, rule) => {
|
||||
if (rule.content.match(/\/poll/gm)) {
|
||||
if (toCSS(rule) !== null) {
|
||||
state.rules.push(toCSS(rule))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue