findIndex(r => JSON.stringify(r) == JSON.stringify(oldRules[1])) : -1;
              if (oldData.type == reverse.type) {
                newTemplateSettings.reverse[oldData.type + 's'][oldReverseIndex] = { tag: reverse.tag, domain: reverse.domain };
              } else {
                newTemplateSettings.reverse[oldData.type + 's'].splice(oldReverseIndex, 1);
                // delete empty object
                if (newTemplateSettings.reverse[oldData.type + 's'].length == 0) Reflect.deleteProperty(newT