Skip to content

Commit

Permalink
Fix invalid state
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Nov 28, 2024
1 parent 389fcc4 commit 4c0e028
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ export function IndexSelection({ selectedDataView }: { selectedDataView?: DataVi
};

return (
<EuiFormRow label={INDEX_LABEL} isInvalid={getFieldState(INDEX_FIELD).invalid} fullWidth>
<EuiFormRow
label={INDEX_LABEL}
isInvalid={getFieldState(INDEX_FIELD).invalid || getFieldState(DATA_VIEW_FIELD).invalid}
fullWidth
>
<Controller
defaultValue=""
name={DATA_VIEW_FIELD}
Expand Down

0 comments on commit 4c0e028

Please sign in to comment.