Skip to content

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

fix small issues in frontend

Matheus Nogueira5daf21c09487
diff --git a/frontend/src/components/honey-tokens/forms/HoneyTokenForm.tsx b/frontend/src/components/honey-tokens/forms/HoneyTokenForm.tsx
index 672cc0a8e5..12764950ac 100644
--- a/frontend/src/components/honey-tokens/forms/HoneyTokenForm.tsx
+++ b/frontend/src/components/honey-tokens/forms/HoneyTokenForm.tsx
@@ -29,7 +29,7 @@ type Props = {
honeyToken?: TDashboardHoneyToken;
};
-const CREATE_TABS: { name: string; key: string; fields: (keyof THoneyTokenForm)[] }[] = [
+const FORM_TABS: { name: string; key: string; fields: (keyof THoneyTokenForm)[] }[] = [
{
name: "Configuration",
key: "configuration",
@@ -40,12 +40,6 @@ const CREATE_TABS: { name: string; key: string; fields: (keyof THoneyTokenForm)[
{ name: "Review", key: "review", fields: [] }
];
-const EDIT_TABS: { name: string; key: string; fields: (keyof THoneyTokenForm)[] }[] = [
- { name: "Mapping", key: "mapping", fields: ["secretsMapping"] },
- { name: "Details", key: "details", fields: ["name", "description"] },
- { name: "Review", key: "review", fields: [] }
-];
-
export const HoneyTokenForm = ({
type,
onComplete,
@@ -61,7 +55,9 @@ export const HoneyTokenForm = ({
const { name: tokenTypeName } = HONEY_TOKEN_MAP[type];
const isUpdate = Boolean(honeyToken);
- const formTabs = isUpdate ? EDIT_TABS : CREATE_TABS;
+ const formTabs = isUpdate
+ ? FORM_TABS.filter((tab) => tab.key !== "configuration")
+ : FORM_TABS;
const [selectedTabIndex, setSelectedTabIndex] = useState(0);