Ensure onChangeFilter callback is a function