fix initial load on folder chang

pull/5370/head
Aniket-Engg 3 years ago committed by Aniket
parent 2b271fab26
commit 14c2acb723
  1. 7
      libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx

@ -261,10 +261,11 @@ export const SolidityUnitTesting = (props: any) => {
const updateTestFileList = () => {
console.log('updateTestFileList--tests->', allTests)
if(allTests?.length) {
if(allTests?.length)
testFiles = allTests.map((testFile) => { return {'fileName': testFile, 'checked': true }})
setTestFiles(testFiles)
}
else
testFiles = []
setTestFiles(testFiles)
}
const createResultLabel = () => {

Loading…
Cancel
Save