We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 453aa83 commit ccf2dc6Copy full SHA for ccf2dc6
1 file changed
extensions/ql-vscode/src/view/compare-performance/ComparePerformance.tsx
@@ -369,7 +369,7 @@ function ComparePerformanceWithData(props: {
369
}) {
370
const { data } = props;
371
372
- const datasets = useMemo(
+ const { from, to } = useMemo(
373
() => ({
374
from: new ComparisonDataset(data.from),
375
to: new ComparisonDataset(data.to),
@@ -387,8 +387,6 @@ function ComparePerformanceWithData(props: {
387
388
const [metric, setMetric] = useState<Metric>(metrics.tuples);
389
390
- const { from, to } = datasets;
391
-
392
const nameSet = new Set(from.data.names);
393
for (const name of to.data.names) {
394
nameSet.add(name);
0 commit comments