[SearchProfiler] Fix console error message when umounting (#50105)
* Safer access of input ref * Remove unnecessary "!" [skip ci]
This commit is contained in:
parent
e2d3c87269
commit
0491589d50
|
@ -86,8 +86,10 @@ export const ProfileQueryEditor = memo(() => {
|
|||
<EuiFieldText
|
||||
disabled={!licenseEnabled}
|
||||
inputRef={ref => {
|
||||
indexInputRef.current = ref!;
|
||||
ref!.value = DEFAULT_INDEX_VALUE;
|
||||
if (ref) {
|
||||
indexInputRef.current = ref;
|
||||
ref.value = DEFAULT_INDEX_VALUE;
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</EuiFormRow>
|
||||
|
|
Loading…
Reference in a new issue