Hotfix for changing names.
Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>feature/profile
parent
411d108813
commit
efa5eaedcc
|
@ -1,7 +1,7 @@
|
||||||
async function changeValue(setting_name, value) {
|
async function changeValue(setting_name, value) {
|
||||||
const form = {
|
const form = {
|
||||||
setting_name: setting_name,
|
setting_name: setting_name,
|
||||||
value: value,
|
value: value.value || value,
|
||||||
id: window.location.href.split("/")[4],
|
id: window.location.href.split("/")[4],
|
||||||
};
|
};
|
||||||
const response = await request(`/api/web/user`, "PATCH", form);
|
const response = await request(`/api/web/user`, "PATCH", form);
|
||||||
|
|
Loading…
Reference in New Issue