From 32648373278b7c7fb6e965c5dfd841aec9ab313b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=83=D8=A7=D8=B1=D9=84=20=D9=85=D8=A8=D8=A7=D8=B1=D9=83?= Date: Fri, 2 Jul 2021 15:04:10 +0200 Subject: [PATCH] fixed bug when adding a rule in realtime --- front/src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/store/index.js b/front/src/store/index.js index 1d7d180..f36419a 100644 --- a/front/src/store/index.js +++ b/front/src/store/index.js @@ -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)) } }