fix(global): error in console under dev mode

This commit is contained in:
QuentinHsu
2024-03-24 18:50:21 +08:00
parent 2e2820ee4d
commit 164bee8cd3
3 changed files with 5 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ const SystemSetting = () => {
TurnstileSecretKey: '',
RegisterEnabled: '',
EmailDomainRestrictionEnabled: '',
EmailDomainWhitelist: '',
EmailDomainWhitelist: [],
// telegram login
TelegramOAuthEnabled: '',
TelegramBotToken: '',
@@ -85,6 +85,7 @@ const SystemSetting = () => {
useEffect(() => {
getOptions().then();
}, []);
useEffect(() => {}, [inputs.EmailDomainWhitelist]);
const updateOption = async (key, value) => {
setLoading(true);