File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export const LoginPage: FC = () => {
69
69
const handleSubmit = useCallback ( ( ) => {
70
70
if ( ( [ DatabaseType . MySql , DatabaseType . Postgres ] . includes ( databaseType . id as DatabaseType ) && ( hostName . length === 0 || database . length === 0 || username . length === 0 || password . length === 0 ) )
71
71
|| ( databaseType . id === DatabaseType . Sqlite3 && database . length === 0 )
72
- || ( databaseType . id === DatabaseType . MongoDb && ( hostName . length === 0 || username . length === 0 || password . length === 0 ) )
72
+ || ( databaseType . id === DatabaseType . MongoDb && ( hostName . length === 0 || username . length === 0 ) )
73
73
|| ( databaseType . id === DatabaseType . Redis && ( hostName . length === 0 ) ) ) {
74
74
return setError ( `All fields are required` ) ;
75
75
}
You can’t perform that action at this time.
0 commit comments