Skip to content

Commit

Permalink
Bugfix: prevent duplicate IDs for default histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
NateLanza committed Jan 24, 2025
1 parent c88e522 commit b06aec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function App() {
bins: 20, // 20 bins is the default used in upset/.../AddPlot.tsx
type: 'Histogram',
frequency: false,
id: Date.now().toString(), // Same calculation as in upset/.../AddPlot.tsx
id: Date.now().toString() + attr, // Add the attribute name so that the IDs aren't duplicated
}));
}

Expand Down

0 comments on commit b06aec4

Please sign in to comment.