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) => { const handleLoadVersion = (value) => {
setState(prevState => { setState(prevState => {
return { ...prevState, selectedVersion: value } return { ...prevState, selectedVersion: value, matomoAutocompileOnce: true }
}) })
updateCurrentVersion(value) updateCurrentVersion(value)
_updateVersionSelector(value) _updateVersionSelector(value)

Loading…
Cancel
Save