This commit is contained in:
parent
fa79ebeabd
commit
f6f7c2d1de
|
@ -105,6 +105,13 @@ export const TimestampField = ({
|
||||||
const { isInvalid, errorMessage } = getFieldValidityAndErrorMessage(field);
|
const { isInvalid, errorMessage } = getFieldValidityAndErrorMessage(field);
|
||||||
const isDisabled = !optionsAsComboBoxOptions.length;
|
const isDisabled = !optionsAsComboBoxOptions.length;
|
||||||
|
|
||||||
|
if (!value && !isDisabled) {
|
||||||
|
const val = optionsAsComboBoxOptions.filter((el) => el.value === '@timestamp');
|
||||||
|
if (val.length) {
|
||||||
|
setValue(val[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<EuiFormRow
|
<EuiFormRow
|
||||||
|
|
Loading…
Reference in a new issue