load expanded if config option was saved

pull/5370/head
lianahus 3 years ago committed by yann300
parent 14a693b75a
commit 60b8ef8b18
  1. 4
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

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

Loading…
Cancel
Save