fix(explore): Reset values in TextControl only when datasource changes (#13211)

* Reset values in TextControl only when datasource changes

* Fix undefined error
This commit is contained in:
Kamil Gabryjelski
2021-02-19 14:28:49 +01:00
committed by GitHub
parent 85d1e80544
commit 42ff4fc19a
2 changed files with 11 additions and 6 deletions

View File

@@ -247,6 +247,7 @@ export default class SelectControl extends React.PureComponent {
isMulti &&
optionsRemaining &&
Array.isArray(this.state.value) &&
Array.isArray(value) &&
!!value.length
) {
assistiveText = optionRemaingText;