fixing bug of saved path

pull/5370/head
lianahus 3 years ago committed by Aniket
parent 6113606384
commit 273fbb95be
  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