_ruleDeleted(e) {
    if (e.cancelable) {
      return;
    }
    if (!this.hosts || !this.hosts.length) {
      return;
    }
    const id = e.detail.id;
    const index = this.hosts.findIndex((item) => item._id === id);
    if (index === -1) {
      return;
    }
    this.hosts.splice(index, 1);
  }
/**
   * Deletes the rule from the `host-rules-deleted` custom event.
   * The event should contain `rule` property on the event's detail object
   * containing the rule object.
   *
   * @param {CustomEvent} e
   */
Deletes the rule from the `host-rules-deleted` custom event.
The event should contain `rule` property on the event's detail object
containing the rule object.


Deletes the rule from the ` host - rules - deleted ` custom event . The event should contain ` rule ` property on the event ' s detail object containing the rule object .
_ruleDeleted(e) {
    if (e.cancelable) {
      return;
    }
    if (!this.hosts || !this.hosts.length) {
      return;
    }
    const id = e.detail.id;
    const index = this.hosts.findIndex((item) => item._id === id);
    if (index === -1) {
      return;
    }
    this.hosts.splice(index, 1);
  }
_ruleDeleted ( e ) { if ( e . cancelable ) { return ; } if ( ! this . hosts || ! this . hosts . length ) { return ; } const id = e . detail . id ; const index = this . hosts . findIndex ( ( item ) => item . _id === id ) ; if ( index === - 1 ) { return ; } this . hosts . splice ( index , 1 ) ; }
Deletes the rule from the `host-rules-deleted` custom event.
Deletes the rule from the ` host - rules - deleted ` custom event .