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 33bfd203fa..17f78d79fc 100644 --- a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx +++ b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx @@ -261,8 +261,7 @@ export const FileExplorer = (props: FileExplorerProps) => { const fetchDirectoryContent = async (folderPath: string): Promise => { return new Promise((resolve) => { - filesProvider.resolveDirectory(folderPath, (error, fileTree) => { - if (error) console.error(error) + filesProvider.resolveDirectory(folderPath, (_error, fileTree) => { const files = normalize(fileTree) resolve(files)