From 12265182594c4ebda91cd3d3fec3c92335d0b083 Mon Sep 17 00:00:00 2001 From: jerrywu Date: Tue, 7 Jun 2022 10:30:17 +0800 Subject: [PATCH] adds property not to show hidden files --- sandpack-react/src/components/FileExplorer/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sandpack-react/src/components/FileExplorer/utils.ts b/sandpack-react/src/components/FileExplorer/utils.ts index 0b00b3112..d73ee539d 100644 --- a/sandpack-react/src/components/FileExplorer/utils.ts +++ b/sandpack-react/src/components/FileExplorer/utils.ts @@ -14,8 +14,7 @@ export const fromPropsToModules = ({ const hasVisibleFilesOption = visibleFiles.length > 0; /** - * When visibleFiles are set, the hidden - * and active flags on the files prop are ignored. + * When visibleFiles or activeFile are set, the hidden and active flags on the files prop are ignored. * @see: https://sandpack.codesandbox.io/docs/getting-started/custom-content#visiblefiles-and-activefile */ const filterByHiddenProperty = autoHiddenFiles && !hasVisibleFilesOption;