mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-24 02:46:27 +00:00
Merge pull request #1189 from palash-signoz/1161-service-map
fix: handle the broken state in service map
This commit is contained in:
commit
3d46abc1e9
@ -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