File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
client/packages/lowcoder/src/pages/ApplicationV2 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function FolderView() {
3838 const elements = useSelector ( folderElementsSelector ) ;
3939 const allFolders = useSelector ( foldersSelector ) ;
4040
41- const folder = allFolders . filter ( ( f ) => f . folderId === folderId ) [ 0 ] ;
41+ const folder = allFolders . filter ( ( f ) => f . folderId === folderId ) [ 0 ] || { } ;
4242 const breadcrumbs = getBreadcrumbs ( folder , allFolders , [
4343 {
4444 text : folder . name ,
@@ -47,7 +47,9 @@ export function FolderView() {
4747 ] ) ;
4848
4949 useEffect ( ( ) => {
50- dispatch ( fetchFolderElements ( { folderId : folderId } ) ) ;
50+ setTimeout ( ( ) => {
51+ dispatch ( fetchFolderElements ( { folderId : folderId } ) ) ;
52+ } , 100 ) ;
5153 } , [ folderId ] ) ;
5254
5355 return (
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ export function RootFolderListView() {
99 const user = useSelector ( getUser ) ;
1010 const allFolders = useSelector ( foldersSelector ) ;
1111
12- console . log ( "RootFolderListView" , allFolders ) ;
13-
1412 if ( ! user . currentOrgId ) {
1513 return null ;
1614 }
You can’t perform that action at this time.
0 commit comments