Skip to content

Commit

Permalink
refactoring the code
Browse files Browse the repository at this point in the history
Signed-off-by: schakrad <[email protected]>
  • Loading branch information
schakrad committed Aug 7, 2023
1 parent 80c02b3 commit 9589332
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,8 @@ export const TimeSeriesChart = ({

chartData?.forEach((d: any) => {
if (
d.metric.__name__.endsWith("cpu_resource_limits") ||
d.metric.__name__.endsWith("memory_resource_requests") ||
d.metric.__name__.endsWith("memory_resource_limits") ||
d.metric.__name__.endsWith("cpu_resource_requests")
d.metric.__name__.endsWith("limits") ||
d.metric.__name__.endsWith("requests")
) {
limitRequestData.push(d);
} else {
Expand Down Expand Up @@ -480,7 +478,7 @@ export const TimeSeriesChart = ({
justifyContent: "center",
alignItems: "center",
marginTop: "10px",
listStyle:'none',
listStyle: 'none',
}}
>
{limitRequestData?.map((d: any, i: number) => {
Expand Down

0 comments on commit 9589332

Please sign in to comment.