From 342a6f6cbe14a641fdb72a3ca40982c43dec6e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Fri, 20 Jan 2023 11:47:10 +0000 Subject: [PATCH] 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. --- .../Project/ProjectFeatureToggles/ProjectFeatureToggles.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/project/Project/ProjectFeatureToggles/ProjectFeatureToggles.tsx b/frontend/src/component/project/Project/ProjectFeatureToggles/ProjectFeatureToggles.tsx index 85bcaab452..c68b7e35bc 100644 --- a/frontend/src/component/project/Project/ProjectFeatureToggles/ProjectFeatureToggles.tsx +++ b/frontend/src/component/project/Project/ProjectFeatureToggles/ProjectFeatureToggles.tsx @@ -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',