From 04b7880c6c426186b47a3cd25cd737c151bd706d Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 23 Feb 2021 11:43:15 +0100 Subject: [PATCH] ensure root path is expanded --- libs/remix-ui/file-explorer/src/lib/file-explorer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx index 44e09da3c6..79b7b68017 100644 --- a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx +++ b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx @@ -120,7 +120,7 @@ export const FileExplorer = (props: FileExplorerProps) => { }] setState(prevState => { - return { ...prevState, fileManager, files, actions } + return { ...prevState, fileManager, files, actions, expandPath: [name] } }) })() }, [name])