fix: remove page rules (#1083)

This commit is contained in:
Hiep Le 2019-10-05 04:13:03 +07:00 committed by Nicolas Giard
parent 3b0cef9091
commit 06aa04ff81

View File

@ -243,8 +243,8 @@ export default {
locales: [] locales: []
}) })
}, },
removeRule(rule) { removeRule(ruleId) {
this.group.pageRules.splice(_.findIndex(this.group.pageRules, ['id', rule.id]), 1) this.group.pageRules.splice(_.findIndex(this.group.pageRules, ['id', ruleId]), 1)
}, },
comingSoon() { comingSoon() {
this.$store.commit('showNotification', { this.$store.commit('showNotification', {