mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 03:51:59 +08:00
fix: handle the broken state
This commit is contained in:
parent
8ec9cb2222
commit
4a287fd112
@ -20,8 +20,8 @@ export const getDimensions = (num, highest) => {
|
|||||||
|
|
||||||
export const getGraphData = (serviceMap): graphDataType => {
|
export const getGraphData = (serviceMap): graphDataType => {
|
||||||
const { items, services } = serviceMap;
|
const { items, services } = serviceMap;
|
||||||
const highestCallCount = maxBy(items, (e) => e.callCount).callCount;
|
const highestCallCount = maxBy(items, (e) => e?.callCount)?.callCount;
|
||||||
const highestCallRate = maxBy(services, (e) => e.callRate).callRate;
|
const highestCallRate = maxBy(services, (e) => e?.callRate)?.callRate;
|
||||||
const divNum = Number(
|
const divNum = Number(
|
||||||
String(1).padEnd(highestCallCount.toString().length, '0'),
|
String(1).padEnd(highestCallCount.toString().length, '0'),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user