From 503de8f85a9fea21d05c9693a3d020ddb7bfbdf1 Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:42:26 -0700 Subject: [PATCH] fix: add missing JSON.stringify --- src/components/ThreeDEditor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThreeDEditor.jsx b/src/components/ThreeDEditor.jsx index 786928a..bb5180c 100644 --- a/src/components/ThreeDEditor.jsx +++ b/src/components/ThreeDEditor.jsx @@ -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); }