Skip to content

Commit

Permalink
chore: fix additional routes array
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankFlitton committed Jun 28, 2023
1 parent 527b42a commit 72a4496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface ExternalConfigurationProviderProps {
nav?: React.FC<any>;
topLevelLayout?: React.FC<any>;
taskExecutionAttemps?: React.FC<any>;
additionalRoutes?: any;
additionalRoutes?: any[];
};
env?: any;
config?: AppConfig;
Expand Down
2 changes: 1 addition & 1 deletion packages/console/src/routes/ApplicationRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const ApplicationRouter: React.FC = () => {
return (
<>
<Switch>
{additionalRoutes.map(route => route)}
{additionalRoutes?.length && additionalRoutes.map(route => route)}
<Route
path={Routes.ExecutionDetails.path}
component={components.executionDetails}
Expand Down

0 comments on commit 72a4496

Please sign in to comment.