Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: address lint

Sheen Capadnganec5c5728bff1
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaModal.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaModal.tsx
index a75ef4da3c..35be69d009 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaModal.tsx
@@ -46,7 +46,6 @@ const schema = z
name: slugSchema({
field: "Name"
}),
- enableDirectIssuance: z.boolean(),
status: z.nativeEnum(CaStatus),
configuration: z
.object({
@@ -99,7 +98,6 @@ export const CaModal = ({ popUp, handlePopUpToggle }: Props) => {
type: CaType.INTERNAL,
name: "",
status: CaStatus.ACTIVE,
- enableDirectIssuance: true,
configuration: {
type: InternalCaType.ROOT,
organization: "",
@@ -123,7 +121,6 @@ export const CaModal = ({ popUp, handlePopUpToggle }: Props) => {
type: ca.type,
name: ca.name,
status: ca.status,
- enableDirectIssuance: ca.enableDirectIssuance,
configuration: {
type: ca.configuration.type,
organization: ca.configuration.organization,
@@ -150,7 +147,6 @@ export const CaModal = ({ popUp, handlePopUpToggle }: Props) => {
type: CaType.INTERNAL,
name: "",
status: CaStatus.ACTIVE,
- enableDirectIssuance: false,
configuration: {
type: InternalCaType.ROOT,
organization: "",
@@ -167,13 +163,7 @@ export const CaModal = ({ popUp, handlePopUpToggle }: Props) => {
}
}, [ca]);
- const onFormSubmit = async ({
- type,
- name,
- enableDirectIssuance,
- status,
- configuration
- }: FormData) => {
+ const onFormSubmit = async ({ type, name, status, configuration }: FormData) => {
if (!currentProject?.slug) return;
if (ca) {
@@ -182,8 +172,7 @@ export const CaModal = ({ popUp, handlePopUpToggle }: Props) => {
id: ca.id,
name,
type: CaType.INTERNAL,
- status,
- enableDirectIssuance
+ status
});
} else {
// create
@@ -192,7 +181,6 @@ export const CaModal = ({ popUp, handlePopUpToggle }: Props) => {
name,
type,
status,
- enableDirectIssuance,
configuration: {
...configuration,
maxPathLength: Number(configuration.maxPathLength)