Skip to content

Commit

Permalink
added dependencies to hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Mar 6, 2020
1 parent e0780ae commit d88f11c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { i18n } from '@kbn/i18n';
import { AggParamEditorProps } from '../agg_param_props';

function RawJsonParamEditor({
agg,
showValidation,
value = '',
setValidity,
Expand Down Expand Up @@ -59,7 +58,7 @@ function RawJsonParamEditor({
<EuiIconTip position="right" content={editorTooltipText} type="questionInCircle" />
</>
),
[]
[jsonEditorLabelText, editorTooltipText]
);

const onEditorValidate = useCallback(
Expand All @@ -73,7 +72,7 @@ function RawJsonParamEditor({
setEditorReady(true);
}
},
[setValidity]
[setValidity, editorReady]
);

return (
Expand Down

0 comments on commit d88f11c

Please sign in to comment.