1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

react exhaustive check fix (#2513)

This commit is contained in:
Mateusz Kwasniewski 2022-11-23 16:59:39 +01:00 committed by GitHub
parent 35d9a62d89
commit 4e28aef55e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,11 @@ export const ProjectFeatureToggles = ({
});
refetch();
},
[toggleFeatureEnvironmentOff, toggleFeatureEnvironmentOn] // eslint-disable-line react-hooks/exhaustive-deps
[
toggleFeatureEnvironmentOff,
toggleFeatureEnvironmentOn,
isChangeRequestConfigured,
]
);
const columns = useMemo(
@ -257,7 +261,7 @@ export const ProjectFeatureToggles = ({
disableSortBy: true,
},
],
[projectId, environments, onToggle, loading]
[projectId, environments, loading]
);
const [searchValue, setSearchValue] = useState(