π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
reserialize and serialize jsonconfig
Tobias076b1d14b247
diff --git a/src/mixins/ConfigSaving.js b/src/mixins/ConfigSaving.jsindex afe38607..968624a6 100644--- a/src/mixins/ConfigSaving.js+++ b/src/mixins/ConfigSaving.js@@ -26,7 +26,9 @@ export default {if (isSubPag) delete jsonConfig.appConfig;// 2. Convert JSON into YAMLconst yamlOptions = {};- const yaml = jsYaml.dump(jsonConfig, yamlOptions);+ const strjsonConfig = JSON.stringify(jsonConfig);+ const jsonObj = JSON.parse(strjsonConfig);+ const yaml = jsYaml.dump(jsonObj, yamlOptions);// 3. Prepare the requestconst baseUrl = process.env.VUE_APP_DOMAIN || window.location.origin;const endpoint = `${baseUrl}${serviceEndpoints.save}`;