We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6da8e7c + 076b1d1 commit 1f5274bCopy full SHA for 1f5274b
src/mixins/ConfigSaving.js
@@ -26,7 +26,9 @@ export default {
26
if (isSubPag) delete jsonConfig.appConfig;
27
// 2. Convert JSON into YAML
28
const yamlOptions = {};
29
- const yaml = jsYaml.dump(jsonConfig, yamlOptions);
+ const strjsonConfig = JSON.stringify(jsonConfig);
30
+ const jsonObj = JSON.parse(strjsonConfig);
31
+ const yaml = jsYaml.dump(jsonObj, yamlOptions);
32
// 3. Prepare the request
33
const baseUrl = process.env.VUE_APP_DOMAIN || window.location.origin;
34
const endpoint = `${baseUrl}${serviceEndpoints.save}`;
0 commit comments