Skip to content

Commit

Permalink
Fix formatting issues and optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Feb 23, 2024
1 parent 29092b2 commit 150e6b9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
3 changes: 1 addition & 2 deletions CommonUI/src/Components/GanttChart/Bar/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ const Bar: FunctionComponent<ComponentProps> = (
barOpacity = 0.5;
}


if(isHovered){
if (isHovered) {
barOpacity = 1;
}

Expand Down
1 change: 0 additions & 1 deletion CommonUI/src/Components/GanttChart/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 16 additions & 15 deletions Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 150e6b9

Please sign in to comment.