Skip to content

Commit

Permalink
fix: AppNavigation - incorrect envId param in Route path
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitRaj011 committed Jan 10, 2025
1 parent b4f7721 commit 006cafe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ export const AppNavigation = () => {
<Switch>
<Route
path={[
`${path}/:resourceType(${Object.values(EnvResourceType).join('|')})/:envId(\\d+)?`,
`${path}/:resourceType(${Object.values(EnvResourceType).join('|')})`,
`${path}/${URLS.APP_ENV_OVERRIDE_CONFIG}/:envId(\\d+)/:resourceType(${Object.values(EnvResourceType).join('|')})`,
]}
>
{({ match }) => (
<EnvConfigurationsNav
key={`env-configurations-nav-${match.params.envId}`}
key={`env-configurations-nav-${'envId' in match.params ? match.params.envId : ''}`}
envConfig={envConfig}
fetchEnvConfig={fetchEnvConfig}
environments={environments.map(({ environmentName, environmentId }) => ({
Expand Down

0 comments on commit 006cafe

Please sign in to comment.