diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-25 19:26:09 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-25 19:26:09 -0500 |
| commit | ea9f91874d8c57dd5bae03b510e881aee148bcd8 (patch) | |
| tree | cbc28ea4de662c686579ec0ced29663b88ea2bf7 /src/web | |
| parent | 8d26e0d68dd4fea3f8ba6fe76c7a0bef7969bcc5 (diff) | |
| download | slskd-ea9f91874d8c57dd5bae03b510e881aee148bcd8.tar.gz | |
stringify yaml (axios does this for us, so this is preventative)
Diffstat (limited to 'src/web')
| -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; }; |
