Skip to content

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

feat: resolved template bug

=9f35b573d196
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/EditProjectTemplateSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/EditProjectTemplateSection.tsx
index 60ca359bb1..439f71718a 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/EditProjectTemplateSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/EditProjectTemplateSection.tsx
@@ -24,6 +24,7 @@ export const EditProjectTemplateSection = ({ template, onBack }: Props) => {
initialData: template,
enabled: !isInfisicalTemplate
});
+ const finalTemplate = isInfisicalTemplate ? template : projectTemplate;
return (
<div>
@@ -41,10 +42,10 @@ export const EditProjectTemplateSection = ({ template, onBack }: Props) => {
<div className="flex h-[60vh] w-full items-center justify-center p-24">
<Spinner />
</div>
- ) : projectTemplate ? (
+ ) : finalTemplate ? (
<EditProjectTemplate
isInfisicalTemplate={isInfisicalTemplate}
- projectTemplate={projectTemplate}
+ projectTemplate={finalTemplate}
onBack={onBack}
/>
) : (