소스 검색

fix: remove page rules (#1083)

Hiep Le 5 년 전
부모
커밋
06aa04ff81
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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', {