Skip to content

Commit

Permalink
fix: molecule export as SVG (#3371)
Browse files Browse the repository at this point in the history
Bug was introduced by 683eb63
  • Loading branch information
targos authored Feb 24, 2025
1 parent 552fadd commit c0d8191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ export default function MoleculePanelHeader({
const moleculeKey = molecules?.[currentIndex]?.id;
const saveAsSVGHandler = useCallback(() => {
if (!rootRef) return;
exportAsSVG('molFile', {
exportAsSVG(`molSVG${currentIndex}`, {
rootElement: rootRef,
fileName: `molSVG${currentIndex} `,
fileName: 'molFile',
});
}, [rootRef, currentIndex]);

Expand Down

0 comments on commit c0d8191

Please sign in to comment.