Commit 8fb82fc 1 parent 1477913 commit 8fb82fc Copy full SHA for 8fb82fc
File tree 1 file changed +2
-5
lines changed
src/webapp/src/components/Library/lists/folders
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ const FolderList = ({
23
23
24
24
const getParentDir = ( dir ) => {
25
25
const decodedDir = decodeURIComponent ( dir ) ;
26
- console . log ( decodedDir )
27
26
28
- if ( decodedDir == ROOT_DIR ) return undefined ;
27
+ if ( decodedDir === ROOT_DIR ) return undefined ;
29
28
30
29
const parentDir = dropLast ( 1 , decodedDir . split ( '/' ) ) . join ( '/' ) || ROOT_DIR ;
31
30
return parentDir ;
@@ -36,9 +35,7 @@ const FolderList = ({
36
35
return (
37
36
< List sx = { { width : '100%' } } >
38
37
{ parentDir &&
39
- < FolderListItemBack
40
- dir = { parentDir }
41
- />
38
+ < FolderListItemBack dir = { parentDir } />
42
39
}
43
40
{ folders . length === 0 &&
44
41
< ListItem sx = { { justifyContent : 'center' } } >
You can’t perform that action at this time.
0 commit comments