aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/System/Options/View.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/web/src/components/System/Options/View.js b/src/web/src/components/System/Options/View.js
index 61651f8d..c3a62214 100644
--- a/src/web/src/components/System/Options/View.js
+++ b/src/web/src/components/System/Options/View.js
@@ -1,5 +1,5 @@
import React from 'react';
-import yaml from 'yaml';
+import YAML from 'yaml';
import { Icon, Button } from 'semantic-ui-react';
import CodeEditor from './CodeEditor';
@@ -7,10 +7,7 @@ import CodeEditor from './CodeEditor';
const View = ({ options, editAction }) => {
const { remoteConfiguration } = options;
- const doc = new yaml.Document();
- doc.contents = options;
-
- const optionsAsYaml = doc.toString();
+ const optionsAsYaml = YAML.stringify(options, { simpleKeys: true })
return (
<>