Explorar o código

fix: remove page rules (#1083)

Hiep Le %!s(int64=5) %!d(string=hai) anos
pai
achega
06aa04ff81
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      client/components/admin/admin-groups-edit-rules.vue

+ 2 - 2
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', {