diff --git a/src/web/components/powerfilter/withFilterDialog.js b/src/web/components/powerfilter/withFilterDialog.js index 80fc02e098..c16b5f17f8 100644 --- a/src/web/components/powerfilter/withFilterDialog.js +++ b/src/web/components/powerfilter/withFilterDialog.js @@ -19,11 +19,16 @@ import React from 'react'; import FilterDialog from './filterdialog'; -const withFilterDialog = (options = {}) => FilterDialogComponent => props => ( - - {dialogProps => } - -); +const withFilterDialog = + ({createFilterType, ...options} = {}) => + FilterDialogComponent => + ( + {createFilterType: createFilterTypeProp = createFilterType, ...props}, // eslint-disable-line react/prop-types + ) => ( + + {dialogProps => } + + ); export default withFilterDialog;