Added option to prevent sending requests to twenty-icons (#16723)
Solution for #15891 https://github.com/user-attachments/assets/82ce5c4b-0a78-45a8-8196-413473887820 --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -18,6 +18,7 @@ export const useRecordsForSelect = ({
|
||||
limit,
|
||||
excludedRecordIds = [],
|
||||
objectNameSingular,
|
||||
allowRequestsToTwentyIcons,
|
||||
}: {
|
||||
searchFilterText: string;
|
||||
sortOrder?: OrderBy;
|
||||
@@ -25,9 +26,11 @@ export const useRecordsForSelect = ({
|
||||
limit?: number;
|
||||
excludedRecordIds?: string[];
|
||||
objectNameSingular: string;
|
||||
allowRequestsToTwentyIcons: boolean;
|
||||
}) => {
|
||||
const { mapToObjectRecordIdentifier } = useMapToObjectRecordIdentifier({
|
||||
objectNameSingular,
|
||||
allowRequestsToTwentyIcons,
|
||||
});
|
||||
|
||||
const filters = [
|
||||
|
||||
Reference in New Issue
Block a user