mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
Fix formatting issues and optimize code
This commit is contained in:
parent
29092b23ba
commit
150e6b9207
@ -72,8 +72,7 @@ const Bar: FunctionComponent<ComponentProps> = (
|
||||
barOpacity = 0.5;
|
||||
}
|
||||
|
||||
|
||||
if(isHovered){
|
||||
if (isHovered) {
|
||||
barOpacity = 1;
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,6 @@ const GanttChart: FunctionComponent<ComponentProps> = (
|
||||
setEachIntervalWidth(chartWidth / numberOfInterval);
|
||||
}
|
||||
|
||||
|
||||
const timelineWidth: number = chartWidth * 0.75; // 75 % of chart width, 25% for category spacer
|
||||
|
||||
setTimelineWidth(timelineWidth); // 75 % of chart width, 25% for category spacer
|
||||
|
@ -53,21 +53,22 @@ const TraceView: FunctionComponent<PageComponentProps> = (
|
||||
|
||||
// get trace with this id and then get all the parentSpanId with this traceid.
|
||||
|
||||
const telemetryServices: ListResult<TelemetryService> = await ModelAPI.getList<TelemetryService>({
|
||||
query: {
|
||||
projectId: DashboardNavigation.getProjectId()!,
|
||||
},
|
||||
limit: LIMIT_PER_PROJECT,
|
||||
skip: 0,
|
||||
modelType: TelemetryService,
|
||||
sort: {
|
||||
name: SortOrder.Ascending,
|
||||
},
|
||||
select: {
|
||||
name: true,
|
||||
_id: true,
|
||||
},
|
||||
});
|
||||
const telemetryServices: ListResult<TelemetryService> =
|
||||
await ModelAPI.getList<TelemetryService>({
|
||||
query: {
|
||||
projectId: DashboardNavigation.getProjectId()!,
|
||||
},
|
||||
limit: LIMIT_PER_PROJECT,
|
||||
skip: 0,
|
||||
modelType: TelemetryService,
|
||||
sort: {
|
||||
name: SortOrder.Ascending,
|
||||
},
|
||||
select: {
|
||||
name: true,
|
||||
_id: true,
|
||||
},
|
||||
});
|
||||
|
||||
setTelemetryServices(telemetryServices.data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user