Skip to content

Commit 85d6968

Browse files
committed
Changed return value in function allStorage to newValues
1 parent a1ab6e5 commit 85d6968

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/app/components/FrontendTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface BarGraphBase {
5757
width: number,
5858
height: number,
5959
data: PerfData,
60-
comparison: Series[] | string,
60+
comparison: Series[],
6161
}
6262

6363
export interface BarGraphComparisonProps extends BarGraphBase {

src/app/components/StateRoute/PerformanceVisx/BarGraphComparison.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @ts-nocheck
1+
22
/* eslint-disable no-param-reassign */
33
import React, { useEffect } from 'react';
44
import { BarStack } from '@visx/shape';

src/app/components/StateRoute/PerformanceVisx/PerformanceVisx.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* eslint-disable guard-for-in */
33
/* eslint-disable no-restricted-syntax */
44
/* eslint-disable max-len */
5-
65
import React, { useState, useEffect } from 'react';
76
import {
87
MemoryRouter as Router,
@@ -131,10 +130,10 @@ const traverse = (snapshot, data, snapshots, currTotalRender: currNum = 0): void
131130
};
132131

133132
// Retrieve snapshot series data from Chrome's local storage.
134-
const allStorage = () => {
133+
const allStorage = (): Series[] => {
135134
let values = localStorage.getItem('project');
136-
values = values === null ? [] : JSON.parse(values);
137-
return values;
135+
const newValues = values === null ? [] : JSON.parse(values);
136+
return newValues;
138137
};
139138

140139
// Gets snapshot Ids for the regular bar graph view.

0 commit comments

Comments
 (0)