From c85946118bd35896273e74a129a22597dbd7d8f6 Mon Sep 17 00:00:00 2001 From: balanza Date: Wed, 7 Aug 2024 10:41:04 +0200 Subject: [PATCH] fix --- .../js/common/ComposedFilter/ComposedFilter.jsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/assets/js/common/ComposedFilter/ComposedFilter.jsx b/assets/js/common/ComposedFilter/ComposedFilter.jsx index 9ba9df14cf..e45126041a 100644 --- a/assets/js/common/ComposedFilter/ComposedFilter.jsx +++ b/assets/js/common/ComposedFilter/ComposedFilter.jsx @@ -3,12 +3,21 @@ import Button from '@common/Button'; import Filter from '@common/Filter'; import DateFilter from '@common/DateFilter'; -const renderFilter = ({ type, ...filterProps }, value, onChange) => { +const renderFilter = (key, { type, ...filterProps }, value, onChange) => { switch (type) { case 'select': - return ; + return ( + + ); case 'date': - return ; + return ( + + ); default: return null; }