[bugfix] Ensure the delete function is callable and correctly handled in config setters.
This commit is contained in:
@@ -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