Page 1 of 1

Events filter

Posted: Fri May 26, 2023 1:41 pm
by Nagesh@Apoorva.com

Hi Team, we are facing an issue with the sidebar event filter, whenever we search for an event name we can see an error in the console, and the search filter not working.Once we get this error no feature in the calendar is working like event edit, Next week, or previous buttons

filter.png
filter.png (178.57 KiB) Viewed 270 times

Re: Events filter

Posted: Fri May 26, 2023 1:47 pm
by marcio

Hey Nagesh,

Can you reproduce that behavior in one of our demos? If not, could you please share a sample project with your configuration for us to check?


Re: Events filter

Posted: Fri May 26, 2023 2:54 pm
by Animal

Just looking at the error "Cannot read properties of null (reading 'match')

So, looking at the code which reported that...

Screenshot 2023-05-26 at 14.51.32.png
Screenshot 2023-05-26 at 14.51.32.png (110.25 KiB) Viewed 265 times

Could be record.getValue(field) isn't yielding anything

If you have a record with no value for that field, that will do it.

Maybe give your field a default value of ''


Re: Events filter

Posted: Fri May 26, 2023 2:56 pm
by Animal

We should probably use record.getValue(field)?.match(new RegExp(value, 'i'));


Re: Events filter

Posted: Tue May 30, 2023 7:57 am
by Nagesh@Apoorva.com

Hi, what we should do for the fix?


Re: Events filter

Posted: Tue May 30, 2023 8:55 am
by Animal

Until we can fix the FilterField, just ensure that the field you are using always has a value that is not null.


Re: Events filter

Posted: Tue May 30, 2023 8:56 am
by Animal