Merge pull request #1176 from ethereum/fixconsole

Hide error output when creating workspace
pull/1170/head^2
bunsenstraat 4 years ago committed by GitHub
commit 70563e48e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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<File[]> => { const fetchDirectoryContent = async (folderPath: string): Promise<File[]> => {
return new Promise((resolve) => { return new Promise((resolve) => {
filesProvider.resolveDirectory(folderPath, (error, fileTree) => { filesProvider.resolveDirectory(folderPath, (_error, fileTree) => {
if (error) console.error(error)
const files = normalize(fileTree) const files = normalize(fileTree)
resolve(files) resolve(files)

Loading…
Cancel
Save