mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Fix TS for vis_type_table (#58347)
* Remove eslint overrides for vis_type_table * Fix TS for vis_type_table Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
a4e82c4e6d
commit
39f6eaf5f4
2 changed files with 3 additions and 9 deletions
|
@ -82,12 +82,6 @@ module.exports = {
|
|||
'react-hooks/exhaustive-deps': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['src/legacy/core_plugins/vis_type_table/**/*.{js,ts,tsx}'],
|
||||
rules: {
|
||||
'react-hooks/exhaustive-deps': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: [
|
||||
'src/legacy/core_plugins/vis_default_editor/public/components/controls/**/*.{ts,tsx}',
|
||||
|
|
|
@ -47,14 +47,14 @@ function TableOptions({
|
|||
.filter(col => get(col.aggConfig.type.getFormat(col.aggConfig), 'type.id') === 'number')
|
||||
.map(({ name }) => ({ value: name, text: name })),
|
||||
],
|
||||
[aggs, stateParams.percentageCol, stateParams.dimensions]
|
||||
[aggs]
|
||||
);
|
||||
|
||||
const isPerPageValid = stateParams.perPage === '' || stateParams.perPage > 0;
|
||||
|
||||
useEffect(() => {
|
||||
setValidity(isPerPageValid);
|
||||
}, [isPerPageValid]);
|
||||
}, [isPerPageValid, setValidity]);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
|
@ -64,7 +64,7 @@ function TableOptions({
|
|||
) {
|
||||
setValue('percentageCol', percentageColumns[0].value);
|
||||
}
|
||||
}, [percentageColumns, stateParams.percentageCol]);
|
||||
}, [percentageColumns, stateParams.percentageCol, setValidity, setValue]);
|
||||
|
||||
return (
|
||||
<EuiPanel paddingSize="s">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue