[bugfix] Ensure the delete function is callable and correctly handled in config setters.
This commit is contained in:
1 parent
3a31b0a9fe
commit
3105df3486
4 files changed
+51
-16
No files matched your search
+3
-1
@@ -215,7 +215,9 @@ const DeeplAuthKey_Box = () => {
|
||||
};
|
||||
|
||||
const saveFunction = () => {
|
||||
if (input_value === "") return deleteDeepLAuthKey();
|
||||
if (input_value === "" || input_value === null) {
|
||||
return deleteDeepLAuthKey();
|
||||
};
|
||||
setDeepLAuthKey(input_value);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user