Skip to content

Commit

Permalink
Simplify datasets assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
asgerf committed Nov 14, 2024
1 parent 38976e9 commit 60216f9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function ComparePerformanceWithData(props: {
}) {
const { data } = props;

const datasets = useMemo(
const { from, to } = useMemo(
() => ({
from: new ComparisonDataset(data.from),
to: new ComparisonDataset(data.to),
Expand All @@ -374,8 +374,6 @@ function ComparePerformanceWithData(props: {

const [metric, setMetric] = useState<Metric>(metrics.tuples);

const { from, to } = datasets;

const nameSet = new Set(from.data.names);
for (const name of to.data.names) {
nameSet.add(name);
Expand Down

0 comments on commit 60216f9

Please sign in to comment.