update state when version changed

pull/5370/head
lianahus 3 years ago
parent 51326146a5
commit ba4efafe91
  1. 2
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -391,7 +391,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
const handleLoadVersion = (value) => {
setState(prevState => {
return { ...prevState, selectedVersion: value }
return { ...prevState, selectedVersion: value, matomoAutocompileOnce: true }
})
updateCurrentVersion(value)
_updateVersionSelector(value)

Loading…
Cancel
Save