Fix/object record and metadata naming (#2763)
* Fixed object-record and object-metadata naming * Fix post merge --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -59,10 +59,12 @@ export const NewOpportunityButton = () => {
|
||||
relationPickerSearchFilterScopedState,
|
||||
);
|
||||
|
||||
const { findManyQuery } = useObjectMetadataItem({
|
||||
// TODO: refactor useFilteredSearchEntityQuery
|
||||
const { findManyRecordsQuery } = useObjectMetadataItem({
|
||||
objectNameSingular: 'company',
|
||||
});
|
||||
const useFindManyQuery = (options: any) => useQuery(findManyQuery, options);
|
||||
const useFindManyQuery = (options: any) =>
|
||||
useQuery(findManyRecordsQuery, options);
|
||||
const { identifiersMapper, searchQuery } = useRelationPicker();
|
||||
|
||||
const filteredSearchEntityResults = useFilteredSearchEntityQuery({
|
||||
|
||||
Reference in New Issue
Block a user