File tree 1 file changed +4
-3
lines changed
client/packages/lowcoder/src/pages/userAuth
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,11 @@ export default function FormLoginSteps() {
116
116
OrgApi . fetchOrgsByEmail ( account )
117
117
. then ( ( resp ) => {
118
118
if ( validateResponse ( resp ) ) {
119
- console . log ( resp . data . data ) ;
120
119
setOrgList ( resp . data . data ) ;
121
- if ( resp . data . data . length === 1 ) {
120
+ if ( ! resp . data . data . lenght ) {
121
+ throw new Error ( 'Error: no workspaces found' ) ;
122
+ }
123
+ else if ( resp . data . data . length === 1 ) {
122
124
setOrganizationId ( resp . data . data [ 0 ] . orgId ) ;
123
125
setCurrentStep ( CurrentStepEnum . AUTH_PROVIDERS ) ;
124
126
return ;
@@ -154,7 +156,6 @@ export default function FormLoginSteps() {
154
156
} }
155
157
/>
156
158
< ConfirmButton loading = { orgLoading } disabled = { ! account } onClick = { fetchOrgsByEmail } >
157
- { /* {trans("userAuth.login")} */ }
158
159
Continue
159
160
</ ConfirmButton >
160
161
</ AccountLoginWrapper >
You can’t perform that action at this time.
0 commit comments