Skip to content

Commit

Permalink
[7.x] Spaces - fix react hook deps (#49618) (#49656)
Browse files Browse the repository at this point in the history
* fix react hook deps

* removing lint override for spaces
  • Loading branch information
legrego authored Oct 29, 2019
1 parent 9c75659 commit 964658c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 964658c

Please sign in to comment.