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

fix: filtering environments in the project features table (#2957)

![image](https://user-images.githubusercontent.com/14320932/213686971-dc612f72-d86e-414d-afee-23856b5add1a.png)

Fixes an issue where environments were not filtered correctly on the
search, most likely due to some regression accidentally introduced with
changes in the meantime.
This commit is contained in:
Nuno Góis 2023-01-20 11:47:10 +00:00 committed by GitHub
parent 96c65fc10d
commit 342a6f6cbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,8 +284,8 @@ export const ProjectFeatureToggles = ({
),
sortType: 'boolean',
filterName: name,
filterParsing: (value: any) =>
value.enabled ? 'enabled' : 'disabled',
filterParsing: (value: boolean) =>
value ? 'enabled' : 'disabled',
})),
{
id: 'Actions',