Skip to content

Commit 748da9f

Browse files
committed
fix(org): stop a not-found page marking General as current, and space its actions
1 parent 5d90473 commit 748da9f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/platform/embedded/app/(shell)/_components/route-status/route-status.module.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
display: flex;
2323
flex-wrap: wrap;
2424
justify-content: center;
25-
gap: var(--ui-action-gap);
25+
gap: var(--spacing-8);
2626
}

‎apps/sim/platform/embedded/lib/data/settings-navigation.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ export function useSettingsNavigation() {
131131

132132
return {
133133
groups,
134-
activeSection: resolveOrganizationSurfaceSection(pathname ?? '')?.section ?? 'general',
134+
/** Empty on a path that names no section, such as not-found, so no row reads as current. */
135+
activeSection: resolveOrganizationSurfaceSection(pathname ?? '')?.section ?? '',
135136
isAdmin,
136137
hosted: settingsFeatures.hosted,
137138
/** Where Back to app lands when no return URL was remembered on the way in. */

0 commit comments

Comments
 (0)