Skip to content

Commit

Permalink
fix: add missing JSON.stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Oct 31, 2023
1 parent e0a4a94 commit 503de8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ThreeDEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class ThreeDEditor extends React.Component {
content = originalMaterial.getAsPOSCAR();
break;
default:
content = originalMaterial.toJSON();
content = JSON.stringify(originalMaterial.toJSON());
}
exportToDisk(content, originalMaterial.name, format);
}
Expand Down

0 comments on commit 503de8f

Please sign in to comment.