Skip to content

Commit

Permalink
fix(portal): capitalize env select options
Browse files Browse the repository at this point in the history
  • Loading branch information
KsiBart committed Nov 13, 2024
1 parent bc79833 commit 637b481
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import ApiActivityDiagram from "./ApiActivityDiagram";
import ErrorBrakedownDiagram from "./ErrorDiagram";
import MostPopularEndpoints from "./MostPopularEndpoints";
import styles from "./index.module.scss";
import { capitalize } from 'lodash';

export type DiagramProps = {
envId: string;
Expand Down Expand Up @@ -76,7 +77,7 @@ const DiagramWrapper = ({ envs }: Props) => {
return (
envs?.map((env) => ({
value: env.id,
label: env.name,
label: capitalize(env.name),
})) ?? []
);
}, [envs]);
Expand Down

0 comments on commit 637b481

Please sign in to comment.