File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3737 "react-router-dom" : " ^6.3.0" ,
3838 "rehype-rewrite" : " ^3.0.6" ,
3939 "rehype-video" : " ^1.2.2" ,
40- "uiw" : " ^ 4.21.14 "
40+ "uiw" : " ~ 4.21.19 "
4141 },
4242 "engines" : {
4343 "node" : " ^16.0.0"
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export default function DirectoryTrees() {
8282 const collapse = new RegExp ( `^${ item . path } ` ) . test ( pathname ) ;
8383 menuItems . push (
8484 < Menu . SubMenu
85- key = { idx }
85+ key = { idx + item . path }
8686 icon = "folder"
8787 overlayProps = { {
8888 isOpen : collapse ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default function Preview() {
3636 const path = usePath ( ) ;
3737
3838 useEffect ( ( ) => {
39- if ( ! pkgname || path . pkgName !== pkgname ) {
39+ if ( ! pkgname && path . pkgName !== pkgname ) {
4040 dispatch . global . setPkgname ( path ) ;
4141 dispatch . global . getDirectoryTrees ( { } ) ;
4242 dispatch . global . getPackageJSON ( { } ) ;
You can’t perform that action at this time.
0 commit comments