remove showURL from validation

This commit is contained in:
Alex Holliday committed 2025-05-26 16:35:41 -07:00
1 parent 5ddb74e70c
commit 3586fc4e6d
2 files changed
+70 -69

No files matched your search

+6 -4
View File
@@ -58,6 +58,11 @@ const Settings = () => {
const handleChange = async (e) => {
const { name, value } = e.target;
// Special case for showURL until handled properly in the backend
if (name === "showURL") {
dispatch(setShowURL(value));
return;
}
// Build next state early
const newSettingsData = {
...settingsData,
@@ -86,10 +91,6 @@ const Settings = () => {
dispatch(setMode(value));
}
if (name === "showURL") {
dispatch(setShowURL(value));
}
if (name === "language") {
dispatch(setLanguage(value));
i18n.changeLanguage(value);
@@ -132,6 +133,7 @@ const Settings = () => {
};
const handleSave = () => {
console.log(settingsData.settings);
const { error } = settingsValidation.validate(settingsData.settings, {
abortEarly: false,
});