added save and load endpoints
This commit is contained in:
@@ -39,6 +39,11 @@ const SoundSettingsFields = () => {
|
||||
path: "soundSettings",
|
||||
value: updatedValues,
|
||||
});
|
||||
await mutation.mutateAsync({
|
||||
operation: "SAVE",
|
||||
path: "",
|
||||
value: null,
|
||||
});
|
||||
if (result.reason !== "OK") {
|
||||
toast.error("Cannot update sound settings");
|
||||
} else {
|
||||
|
||||
@@ -46,7 +46,11 @@ const SoundUpload = () => {
|
||||
if (result.reason !== "OK") {
|
||||
toast.error("Cannot update sound settings");
|
||||
}
|
||||
|
||||
await mutation.mutateAsync({
|
||||
operation: "SAVE",
|
||||
path: "",
|
||||
value: null,
|
||||
});
|
||||
dispatch({ type: "ADD", payload: values });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user