mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
Refactor MonitorChart.tsx to improve readability and maintainability
This commit is contained in:
parent
39c7f6f2ba
commit
2fb509b98c
@ -99,12 +99,14 @@ export class MonitorCharts {
|
||||
}
|
||||
|
||||
if (data.miscData.probeId) {
|
||||
const probe: Probe | undefined = data.probes.find((probe: Probe) => {
|
||||
return (
|
||||
probe._id?.toString() ===
|
||||
data.miscData?.probeId?.toString()
|
||||
);
|
||||
});
|
||||
const probe: Probe | undefined = data.probes.find(
|
||||
(probe: Probe) => {
|
||||
return (
|
||||
probe._id?.toString() ===
|
||||
data.miscData?.probeId?.toString()
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
if (probe) {
|
||||
return probe.name || 'Probe';
|
||||
|
Loading…
Reference in New Issue
Block a user