Skip to content

Commit 1f5274b

Browse files
authored
🔀 Merge pull request #1470 from CrazyWolf13/master
reserialize and serialize jsonconfig Fixes #1361
2 parents 6da8e7c + 076b1d1 commit 1f5274b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mixins/ConfigSaving.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export default {
2626
if (isSubPag) delete jsonConfig.appConfig;
2727
// 2. Convert JSON into YAML
2828
const yamlOptions = {};
29-
const yaml = jsYaml.dump(jsonConfig, yamlOptions);
29+
const strjsonConfig = JSON.stringify(jsonConfig);
30+
const jsonObj = JSON.parse(strjsonConfig);
31+
const yaml = jsYaml.dump(jsonObj, yamlOptions);
3032
// 3. Prepare the request
3133
const baseUrl = process.env.VUE_APP_DOMAIN || window.location.origin;
3234
const endpoint = `${baseUrl}${serviceEndpoints.save}`;

0 commit comments

Comments
 (0)