c56ccf7ed9
This PR fixes a bug that occurs during filter operand changes. As a date filter can contain values that have a different shape, mainly date ISO string and hard-coded relative dates, changing the operand without resetting the value to its default was causing a crash. This PR also extracts the logic that computes the right part of a filter chip into a util instead of a difficult to understand ternary, thus solving small bugs in the value displayed also. Fixes https://github.com/twentyhq/twenty/issues/12778