Skip to content

Commit 454f3fe

Browse files
committed
redundant code removed
1 parent 8732cd6 commit 454f3fe

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

app/components/TransferColumns.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ interface Params {
1919

2020
const TransferColumns = React.memo(() => {
2121
const [targetKeys, setTargetKeys] = useState<any[]>([]);
22-
// console.log({targetKeys})
2322
const [metricsPool, setMetricsPool] = useState<any[]>([]);
24-
// console.log({metricsPool})
2523
const [healthMetricsReady, setHealthMetricsReady] = useState(false);
2624
const [healthMetrics, setHealthMetrics] = useState<any[]>([]);
2725
const [eventMetricsReady, setEventMetricsReady] = useState(false);
@@ -155,7 +153,6 @@ const TransferColumns = React.memo(() => {
155153
temp.push(newCategory);
156154
}
157155
}
158-
// console.log('temp', temp)
159156
setSelectedMetrics(temp);
160157
};
161158

@@ -182,7 +179,6 @@ const TransferColumns = React.memo(() => {
182179
const rows:any[] = []
183180
let id = 0
184181
for(let savedMetric of Object.keys(savedMetrics)) {
185-
186182
const { metric,category } = savedMetrics[savedMetric]
187183
rows.push({
188184
id:id++,
@@ -207,8 +203,6 @@ const TransferColumns = React.memo(() => {
207203
);
208204
});
209205

210-
//! BZ: creates metrics query page in Chronos
211-
212206
return (
213207
<>
214208
<div id="getChartsContainer">
@@ -249,30 +243,25 @@ const TransferColumns = React.memo(() => {
249243
}}
250244
>
251245
<DataGrid
252-
// style={currentStyle }
253246
rows={rows}
254247
columns={columns}
255248
style={currentStyle}
256249
slots={{ toolbar: GridToolbar }}
257250
slotProps={{
258251
toolbar: {
259252
showQuickFilter: true,
260-
261-
262253
},
263254
}}
264-
pageSizeOptions ={[10]}
255+
pageSizeOptions={[10]}
265256
checkboxSelection
266257
disableRowSelectionOnClick
267258
onRowSelectionModelChange={metricIndeces => {
268259
const metrics: any[] = [];
269260
metricIndeces.forEach(el => {
270-
console.log({rows})
271261
metrics.push(`${rows[el].tag} | ${rows[el].title}`);
272262
});
273263
setTargetKeys(metrics);
274264
}}
275-
276265
/>
277266
</Box>
278267

0 commit comments

Comments
 (0)