3648fa064c
This PR fixes https://github.com/twentyhq/twenty/issues/16165. The bug was due to a wrong initialization of a record filter, which was using another object metadata item than the filtered one. As we can see in the original issue : ``` ... "fieldMetadataId": "f12697bf-1eba-4061-bdd4-3e8a81172b79" ... "fieldMetadataId": "658c531c-0c2e-43a1-8f70-4d6266c3841f", ... ``` The fix was to update the hook that returned the default field metadata item to use for a new filter, and force the caller to tell which object metadata item to use.