load expanded if config option was saved

pull/2470/head
lianahus 2 years ago committed by yann300
parent 7aafa2d597
commit 3967b6afab
  1. 4
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -79,10 +79,12 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
}, [workspaceName])
useEffect(() => {
if (state.useFileConfiguration)
if (state.useFileConfiguration) {
api.fileExists(defaultPath).then((exists) => {
if (!exists || state.useFileConfiguration ) createNewConfigFile()
})
setToggleExpander(true)
}
}, [state.useFileConfiguration])

Loading…
Cancel
Save