Skip to content

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

fix: correct schema check on tag creation

Scott Wilson1484cfabe127
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
index 261a1e7b3c..e6c6091fb9 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
@@ -249,7 +249,7 @@ export const CreateSecretForm = ({ secretPath = "/", defaultSelectedEnvs, onClos
const createWsTag = useCreateWsTag();
const createNewTag = async (slug: string) => {
- const parsedSlug = slugSchema.parse(slug);
+ const parsedSlug = slugSchema().parse(slug);
const newTag = await createWsTag.mutateAsync({
projectId,
tagSlug: parsedSlug,