mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 08:52:00 +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 => {
|
||||
const { items, services } = serviceMap;
|
||||
const highestCallCount = maxBy(items, (e) => e.callCount).callCount;
|
||||
const highestCallRate = maxBy(services, (e) => e.callRate).callRate;
|
||||
const highestCallCount = maxBy(items, (e) => e?.callCount)?.callCount;
|
||||
const highestCallRate = maxBy(services, (e) => e?.callRate)?.callRate;
|
||||
const divNum = Number(
|
||||
String(1).padEnd(highestCallCount.toString().length, '0'),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user