File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export const searchCustomersSubscriptions = async (Customer: LowcoderSearchCusto
140
140
}
141
141
142
142
// Filter out entries with `"success": "false"`
143
- const validEntries = result . data . filter ( ( entry : any ) => entry . success !== "false" ) ;
143
+ const validEntries = result . data ? .filter ( ( entry : any ) => entry . success !== "false" ) ;
144
144
145
145
// Flatten the data arrays and filter out duplicates by `id`
146
146
const uniqueSubscriptions = Object . values (
Original file line number Diff line number Diff line change @@ -156,7 +156,8 @@ export default function FormLoginSteps(props: FormLoginProps) {
156
156
} , [ serverSettings ] ) ;
157
157
158
158
const afterLoginSuccess = ( ) => {
159
- if ( props . organizationId ) {
159
+ // used invitation link or organization login url then set cookie
160
+ if ( props . organizationId && ! isEnterpriseMode ) {
160
161
localStorage . setItem ( "lowcoder_login_orgId" , props . organizationId ) ;
161
162
}
162
163
fetchUserAfterAuthSuccess ?.( ) ;
Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ function UserRegister() {
136
136
} , [ serverSettings ] ) ;
137
137
138
138
const afterLoginSuccess = ( ) => {
139
- if ( organizationId ) {
139
+ // used invitation link or organization login url then set cookie
140
+ if ( organizationId && ! isEnterpriseMode ) {
140
141
localStorage . setItem ( "lowcoder_login_orgId" , organizationId ) ;
141
142
}
142
143
fetchUserAfterAuthSuccess ?.( ) ;
@@ -159,7 +160,7 @@ function UserRegister() {
159
160
) ;
160
161
161
162
const checkEmailExist = ( ) => {
162
- if ( ! Boolean ( account . length ) || lastEmailChecked === account ) return ;
163
+ if ( ! Boolean ( account . length ) || lastEmailChecked === account || isEnterpriseMode ) return ;
163
164
164
165
setOrgLoading ( true ) ;
165
166
OrgApi . fetchOrgsByEmail ( account )
You can’t perform that action at this time.
0 commit comments