File tree 2 files changed +4
-4
lines changed
client/packages/lowcoder/src/pages/ApplicationV2
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function FolderView() {
38
38
const elements = useSelector ( folderElementsSelector ) ;
39
39
const allFolders = useSelector ( foldersSelector ) ;
40
40
41
- const folder = allFolders . filter ( ( f ) => f . folderId === folderId ) [ 0 ] ;
41
+ const folder = allFolders . filter ( ( f ) => f . folderId === folderId ) [ 0 ] || { } ;
42
42
const breadcrumbs = getBreadcrumbs ( folder , allFolders , [
43
43
{
44
44
text : folder . name ,
@@ -47,7 +47,9 @@ export function FolderView() {
47
47
] ) ;
48
48
49
49
useEffect ( ( ) => {
50
- dispatch ( fetchFolderElements ( { folderId : folderId } ) ) ;
50
+ setTimeout ( ( ) => {
51
+ dispatch ( fetchFolderElements ( { folderId : folderId } ) ) ;
52
+ } , 100 ) ;
51
53
} , [ folderId ] ) ;
52
54
53
55
return (
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ export function RootFolderListView() {
9
9
const user = useSelector ( getUser ) ;
10
10
const allFolders = useSelector ( foldersSelector ) ;
11
11
12
- console . log ( "RootFolderListView" , allFolders ) ;
13
-
14
12
if ( ! user . currentOrgId ) {
15
13
return null ;
16
14
}
You can’t perform that action at this time.
0 commit comments