File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
client/packages/lowcoder/src/pages/common Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -259,11 +259,11 @@ export default function ProfileDropdown(props: DropDownProps) {
259
259
} , [ dropdownVisible , workspaces . items . length , dispatch ] ) ;
260
260
261
261
const filteredOrgs = useMemo ( ( ) => {
262
- if ( ! searchTerm . trim ( ) ) return orgs ;
263
- return orgs . filter ( org =>
262
+ if ( ! searchTerm . trim ( ) ) return workspaces . items ;
263
+ return workspaces . items . filter ( org =>
264
264
org . name . toLowerCase ( ) . includes ( searchTerm . toLowerCase ( ) )
265
265
) ;
266
- } , [ orgs , searchTerm ] ) ;
266
+ } , [ workspaces . items , searchTerm ] ) ;
267
267
268
268
const handleProfileClick = ( ) => {
269
269
if ( checkIsMobile ( window . innerWidth ) ) {
@@ -320,11 +320,11 @@ export default function ProfileDropdown(props: DropDownProps) {
320
320
</ ProfileSection >
321
321
322
322
{ /* Workspaces Section */ }
323
- { orgs && orgs . length > 0 && showSwitchOrg ( props . user , sysConfig ) && (
323
+ { workspaces . items && workspaces . items . length > 0 && showSwitchOrg ( props . user , sysConfig ) && (
324
324
< WorkspaceSection >
325
325
< SectionHeader > { trans ( "profile.switchOrg" ) } </ SectionHeader >
326
326
327
- { orgs . length > 3 && (
327
+ { workspaces . items . length > 3 && (
328
328
< SearchContainer >
329
329
< StyledSearchInput
330
330
placeholder = "Search workspaces..."
You can’t perform that action at this time.
0 commit comments