From ea9f91874d8c57dd5bae03b510e881aee148bcd8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 25 Oct 2026 19:26:09 -0500 Subject: stringify yaml (axios does this for us, so this is preventative) --- src/web/src/lib/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web') 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; }; -- cgit v1.2.3