Skip to content

Commit

Permalink
tested and removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielshid committed Dec 3, 2024
1 parent a9defd1 commit 9cc09f9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/client/app/components/RadarChartComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ export default function RadarChartComponent() {
if (readingsData) {
const label = entity.identifier;
const colorID = meterID;
// TODO If we are sure the data is always defined then remove this commented out code.
// Be consistent for all graphing and groups below.
// if (readingsData.readings === undefined) {
// throw new Error('Unacceptable condition: readingsData.readings is undefined.');
// }
// Create two arrays for the distance (rData) and angle (thetaData) values. Fill the array with the data from the line readings.
// HoverText is the popup value show for each reading.
const thetaData: string[] = [];
Expand Down Expand Up @@ -146,9 +141,6 @@ export default function RadarChartComponent() {
if (readingsData) {
const label = entity.name;
const colorID = groupID;
// if (readingsData.readings === undefined) {
// throw new Error('Unacceptable condition: readingsData.readings is undefined.');
// }
// Create two arrays for the distance (rData) and angle (thetaData) values. Fill the array with the data from the line readings.
// HoverText is the popup value show for each reading.
const thetaData: string[] = [];
Expand Down

0 comments on commit 9cc09f9

Please sign in to comment.