diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/lib/options.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/lib/options.js b/src/web/src/lib/options.js index 1c3c55c5..891d0ee2 100644 --- a/src/web/src/lib/options.js +++ b/src/web/src/lib/options.js @@ -17,9 +17,9 @@ export const getYamlLocation = async () => { }; export const validateYaml = async ({ yaml }) => { - return (await api.post('/options/yaml/validate', yaml)).data; + return (await api.post('/options/yaml/validate', JSON.stringify(yaml))).data; }; export const updateYaml = async ({ yaml }) => { - return (await api.put('/options/yaml', yaml)).data; + return (await api.put('/options/yaml', JSON.stringify(yaml))).data; }; |
