Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Fixed the bug with redirect during signup invite
Vladyslav Matsiiako6567c3bddf5c
diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex cdd0faedb8..44d791bb0c 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -45,7 +45,6 @@"react-beautiful-dnd": "^13.1.1","react-code-input": "^3.10.1","react-dom": "^17.0.2",- "react-github-btn": "^1.4.0","react-grid-layout": "^1.3.4","react-i18next": "^12.1.1","react-mailchimp-subscribe": "^2.1.3",@@ -12768,11 +12767,6 @@"giget": "dist/cli.mjs"}},- "node_modules/github-buttons": {- "version": "2.22.0",- "resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.22.0.tgz",- "integrity": "sha512-N5bk01s1WgK1FVtoeSUVkRkJpkaSu8yHMPcjye+PTa0jsRjMRNrYqVLgpUf2RA5Kvec05DfHYAT6/68fwkdqPw=="- },"node_modules/github-from-package": {"version": "0.0.0","resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",@@ -17888,17 +17882,6 @@"integrity": "sha512-Fl7FuabXsJnV5Q1qIOQwx/sagGF18kogb4gpfcG4gjLBWO0WDiiz1ko/ExayuxE7InyQkBLkxRFG5oxY6Uu3Kg==","dev": true},- "node_modules/react-github-btn": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/react-github-btn/-/react-github-btn-1.4.0.tgz",- "integrity": "sha512-lV4FYClAfjWnBfv0iNlJUGhamDgIq6TayD0kPZED6VzHWdpcHmPfsYOZ/CFwLfPv4Zp+F4m8QKTj0oy2HjiGXg==",- "dependencies": {- "github-buttons": "^2.22.0"- },- "peerDependencies": {- "react": ">=16.3.0"- }- },"node_modules/react-grid-layout": {"version": "1.3.4","resolved": "https://registry.npmjs.org/react-grid-layout/-/react-grid-layout-1.3.4.tgz",@@ -31479,11 +31462,6 @@"tar": "^6.1.12"}},- "github-buttons": {- "version": "2.22.0",- "resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.22.0.tgz",- "integrity": "sha512-N5bk01s1WgK1FVtoeSUVkRkJpkaSu8yHMPcjye+PTa0jsRjMRNrYqVLgpUf2RA5Kvec05DfHYAT6/68fwkdqPw=="- },"github-from-package": {"version": "0.0.0","resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",@@ -35150,14 +35128,6 @@}}},- "react-github-btn": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/react-github-btn/-/react-github-btn-1.4.0.tgz",- "integrity": "sha512-lV4FYClAfjWnBfv0iNlJUGhamDgIq6TayD0kPZED6VzHWdpcHmPfsYOZ/CFwLfPv4Zp+F4m8QKTj0oy2HjiGXg==",- "requires": {- "github-buttons": "^2.22.0"- }- },"react-grid-layout": {"version": "1.3.4","resolved": "https://registry.npmjs.org/react-grid-layout/-/react-grid-layout-1.3.4.tgz",diff --git a/frontend/package.json b/frontend/package.jsonindex 32bd552e0e..8c30f749ec 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -52,7 +52,6 @@"react-beautiful-dnd": "^13.1.1","react-code-input": "^3.10.1","react-dom": "^17.0.2",- "react-github-btn": "^1.4.0","react-grid-layout": "^1.3.4","react-i18next": "^12.1.1","react-mailchimp-subscribe": "^2.1.3",diff --git a/frontend/src/pages/noprojects.tsx b/frontend/src/pages/noprojects.tsxindex 85e393ae74..a08c1b8eea 100644--- a/frontend/src/pages/noprojects.tsx+++ b/frontend/src/pages/noprojects.tsx@@ -5,13 +5,13 @@ import { useRouter } from 'next/router';import Button from '@app/components/basic/buttons/Button';import { getTranslatedServerSideProps } from '@app/components/utilities/withTranslateProps';-import getWorkspaces from './api/workspace/getWorkspaces';+import getOrganizationUserProjects from './api/organization/GetOrgUserProjects';export default function NoProjects() {const router = useRouter();const redirectUser = async () => {- const workspaces = await getWorkspaces();+ const workspaces = await getOrganizationUserProjects({ orgId: String(localStorage.getItem("orgData.id")) });if (workspaces.length > 0) {router.push(`/dashboard/${workspaces[0]._id}`);}