diff --git a/web/src/components/BranchProtection/BranchProtectionForm/BranchProtectionForm.tsx b/web/src/components/BranchProtection/BranchProtectionForm/BranchProtectionForm.tsx index 26813ef99..57f8deee9 100644 --- a/web/src/components/BranchProtection/BranchProtectionForm/BranchProtectionForm.tsx +++ b/web/src/components/BranchProtection/BranchProtectionForm/BranchProtectionForm.tsx @@ -65,7 +65,6 @@ const BranchProtectionForm = (props: { const { showError, showSuccess } = useToaster() const { editMode = false, repoMetadata, ruleUid, refetchRules } = props const { getString } = useStrings() - const { data: rule } = useGet({ path: `/api/v1/repos/${repoMetadata?.path}/+/rules/${ruleId}`, lazy: !repoMetadata && !ruleId @@ -212,8 +211,8 @@ const BranchProtectionForm = (props: { state: formData.enable === true ? 'active' : 'disabled', pattern: { default: formData.targetDefault, - exclude: includeArray, - include: excludeArray + exclude: excludeArray, + include: includeArray }, definition: { bypass: { diff --git a/web/src/components/BranchProtection/BranchProtectionHeader/BranchProtectionHeader.tsx b/web/src/components/BranchProtection/BranchProtectionHeader/BranchProtectionHeader.tsx index cffe2cc15..3ac7acd11 100644 --- a/web/src/components/BranchProtection/BranchProtectionHeader/BranchProtectionHeader.tsx +++ b/web/src/components/BranchProtection/BranchProtectionHeader/BranchProtectionHeader.tsx @@ -36,7 +36,7 @@ const BranchProtectionHeader = ({