Skip to content

Commit

Permalink
Merge pull request #138 from Exabyte-io/hotfix/download-json
Browse files Browse the repository at this point in the history
fix: add missing JSON.stringify
  • Loading branch information
VsevolodX committed Nov 3, 2023
2 parents f86c48e + 503de8f commit 88e2b9c
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 88e2b9c

Please sign in to comment.