From 06aa04ff814e38548653b5ade069c098d5a8a703 Mon Sep 17 00:00:00 2001 From: Hiep Le Date: Sat, 5 Oct 2019 04:13:03 +0700 Subject: [PATCH] fix: remove page rules (#1083) --- client/components/admin/admin-groups-edit-rules.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/admin/admin-groups-edit-rules.vue b/client/components/admin/admin-groups-edit-rules.vue index 4d0ac565..3f8c62d9 100644 --- a/client/components/admin/admin-groups-edit-rules.vue +++ b/client/components/admin/admin-groups-edit-rules.vue @@ -243,8 +243,8 @@ export default { locales: [] }) }, - removeRule(rule) { - this.group.pageRules.splice(_.findIndex(this.group.pageRules, ['id', rule.id]), 1) + removeRule(ruleId) { + this.group.pageRules.splice(_.findIndex(this.group.pageRules, ['id', ruleId]), 1) }, comingSoon() { this.$store.commit('showNotification', {