fixing bug of saved path

pull/2582/head
lianahus 2 years ago committed by Aniket
parent 94dd4bb567
commit ebfb66b7ba
  1. 5
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -71,7 +71,10 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
api.setAppParameter('configFilePath', defaultPath)
if (state.useFileConfiguration) {
api.fileExists(defaultPath).then((exists) => {
if (!exists && state.useFileConfiguration) createNewConfigFile()
if (!exists && state.useFileConfiguration) {
configFilePathInput.current.value = defaultPath
createNewConfigFile()
}
})
}
setShowFilePathInput(false)

Loading…
Cancel
Save