Fix tile-map react eslint errors (#54265) (#54434)

This commit is contained in:
Tim Roes 2020-01-10 12:54:08 +01:00 committed by GitHub
parent 6a78a6d6f8
commit b0cd3c378d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View file

@ -82,12 +82,6 @@ module.exports = {
'react-hooks/exhaustive-deps': 'off',
},
},
{
files: ['src/legacy/core_plugins/tile_map/**/*.{js,ts,tsx}'],
rules: {
'react-hooks/exhaustive-deps': 'off',
},
},
{
files: ['src/legacy/core_plugins/vis_type_markdown/**/*.{js,ts,tsx}'],
rules: {

View file

@ -41,7 +41,7 @@ function TileMapOptions(props: TileMapOptionsProps) {
if (!stateParams.mapType) {
setValue('mapType', vis.type.editorConfig.collections.mapTypes[0]);
}
}, []);
}, [setValue, stateParams.mapType, vis.type.editorConfig.collections.mapTypes]);
return (
<>