diff --git a/.eslintrc.js b/.eslintrc.js index 9c81ba6efbd2..a7b712dabb6c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -229,12 +229,6 @@ module.exports = { 'react-hooks/exhaustive-deps': 'off', }, }, - { - files: ['x-pack/legacy/plugins/spaces/**/*.{js,ts,tsx}'], - rules: { - 'react-hooks/exhaustive-deps': 'off', - }, - }, { files: ['x-pack/legacy/plugins/transform/**/*.{js,ts,tsx}'], rules: { diff --git a/x-pack/legacy/plugins/spaces/public/views/management/components/copy_saved_objects_to_space/copy_to_space_flyout.tsx b/x-pack/legacy/plugins/spaces/public/views/management/components/copy_saved_objects_to_space/copy_to_space_flyout.tsx index 4663b73f1cb7..7461edcff10e 100644 --- a/x-pack/legacy/plugins/spaces/public/views/management/components/copy_saved_objects_to_space/copy_to_space_flyout.tsx +++ b/x-pack/legacy/plugins/spaces/public/views/management/components/copy_saved_objects_to_space/copy_to_space_flyout.tsx @@ -72,7 +72,7 @@ export const CopySavedObjectsToSpaceFlyout = (props: Props) => { }), }); }); - }, []); + }, [spacesManager, toastNotifications]); const eligibleSpaces = spaces.filter(space => space.id !== props.activeSpace.id); const [copyInProgress, setCopyInProgress] = useState(false);