Skip to content

Commit

Permalink
added an explanatory comment linking back to the original bug
Browse files Browse the repository at this point in the history
  • Loading branch information
paddymul committed Nov 11, 2024
1 parent 0d4c618 commit 7516034
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/components/DFViewerParts/HistogramCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export const HistogramCell = (props: any) => {
console.log('dumbClickHandler', rechartsArgs);
};

// used to prevent duplicate IDs which lead to a nasty bug where patterns aren't applied
// https://github.com/paddymul/buckaroo/issues/292
const gensym = (base: string) => {
const id = `${base}-${crypto.randomUUID()}`;
return [id, `url(#${id})`];
Expand Down

0 comments on commit 7516034

Please sign in to comment.