diff --git a/frontend/src/pages/dashboard/[id].tsx b/frontend/src/pages/dashboard/[id].tsx
index 8aa480c81..bd43c85b1 100644
--- a/frontend/src/pages/dashboard/[id].tsx
+++ b/frontend/src/pages/dashboard/[id].tsx
@@ -240,10 +240,12 @@ export default function Dashboard() {
setWorkspaceEnvs(accessibleEnvironments || []);
// set env
- const env = accessibleEnvironments?.[0] || {
+ console.log(1, accessibleEnvironments, envInURL)
+ const env = accessibleEnvironments?.find((ae: WorkspaceEnv) => ae.slug === envInURL) || {
name: 'unknown',
slug: 'unknown'
};
+ console.log(1, env)
setSelectedEnv(env);
setSelectedSnapshotEnv(env);
@@ -279,7 +281,7 @@ export default function Dashboard() {
setData(undefined);
}
})();
- }, [workspaceId]);
+ }, [workspaceId, envInURL]);
useEffect(() => {
(async () => {
@@ -290,7 +292,7 @@ export default function Dashboard() {
let dataToSort;
if (selectedEnv) {
dataToSort = await getSecretsForProject({
- env: selectedEnv.slug,
+ env: String(envInURL),
setIsKeyAvailable,
setData,
workspaceId
@@ -1018,7 +1020,7 @@ export default function Dashboard() {
diff --git a/frontend/src/views/DashboardPage/components/EnvComparisonRow/EnvComparisonRow.tsx b/frontend/src/views/DashboardPage/components/EnvComparisonRow/EnvComparisonRow.tsx
index acadf600d..c464074ec 100644
--- a/frontend/src/views/DashboardPage/components/EnvComparisonRow/EnvComparisonRow.tsx
+++ b/frontend/src/views/DashboardPage/components/EnvComparisonRow/EnvComparisonRow.tsx
@@ -28,8 +28,8 @@ const DashboardInput = ({ isOverridden, isSecretValueHidden, isReadOnly, secret,
ref.current.scrollLeft = e.currentTarget.scrollLeft;
};
- return
-
+ return
+
{(secret?.value || secret?.value === '') && (isOverridden ? secret.valueOverride : secret?.value)?.split('').length === 0 && EMPTY}
{(secret?.value || secret?.value === '') && (isOverridden ? secret.valueOverride : secret?.value)?.split(REGEX).map((word: string) => {
@@ -78,7 +78,7 @@ const DashboardInput = ({ isOverridden, isSecretValueHidden, isReadOnly, secret,
);
})}
- {!(secret?.value || secret?.value === '') && missing}
+ {!(secret?.value || secret?.value === '') && missing}
{(isSecretValueHidden && secret?.value) && (
@@ -118,7 +118,7 @@ export const EnvComparisonRow = ({
{index + 1} |
- {secret?.key || ''}
+ {secret?.key || ''}
diff --git a/frontend/src/views/Settings/OrgSettingsPage/OrgSettingsPage.tsx b/frontend/src/views/Settings/OrgSettingsPage/OrgSettingsPage.tsx
index d5d8687b7..33b94eafe 100644
--- a/frontend/src/views/Settings/OrgSettingsPage/OrgSettingsPage.tsx
+++ b/frontend/src/views/Settings/OrgSettingsPage/OrgSettingsPage.tsx
@@ -62,7 +62,10 @@ export const OrgSettingsPage = () => {
(orgUsers || []).length >= 5 &&
subscriptionPlan === plans.starter &&
host === 'https://app.infisical.com' &&
- currentWorkspace?._id !== '63ea8121b6e2b0543ba79616';
+ currentWorkspace?._id !== '63ea8121b6e2b0543ba79616' &&
+ currentWorkspace?._id !== '634870246fd2e26f28e76996' &&
+ currentWorkspace?._id !== '63d823cef9e728a0a961255a' &&
+ currentWorkspace?._id !== '6412ec319db25595ac00b8c6';
const onRenameOrg = async (name: string) => {
if (!currentOrg?._id) return;
| | |