fixed bug when adding a rule in realtime

This commit is contained in:
كارل مبارك 2021-07-02 15:04:10 +02:00
parent 0b3abbe6a7
commit 3264837327

View file

@ -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))
}
}