The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Prevent setting addition from being broken
Charles Bochet7e7bd6b9e74f
diff --git a/front/src/modules/settings/data-model/hooks/useRelationFieldPreviewValue.ts b/front/src/modules/settings/data-model/hooks/useRelationFieldPreviewValue.tsindex ca11ebf871d..7a8b2328f8f 100644--- a/front/src/modules/settings/data-model/hooks/useRelationFieldPreviewValue.ts+++ b/front/src/modules/settings/data-model/hooks/useRelationFieldPreviewValue.ts@@ -16,7 +16,7 @@ export const useRelationFieldPreviewValue = ({: undefined;const { records: relationObjects } = useFindManyRecords({- objectNameSingular: relationObjectMetadataItem?.nameSingular ?? '',+ objectNameSingular: relationObjectMetadataItem?.nameSingular ?? 'company', // TODO fix this hackskip: skip || !relationObjectMetadataItem,});diff --git a/front/src/modules/ui/input/components/IconPicker.tsx b/front/src/modules/ui/input/components/IconPicker.tsxindex 587c5c80db6..b23be4828a0 100644--- a/front/src/modules/ui/input/components/IconPicker.tsx+++ b/front/src/modules/ui/input/components/IconPicker.tsx@@ -60,14 +60,15 @@ export const IconPicker = ({const { icons, isLoadingIcons: isLoading } = useLazyLoadIcons();const iconKeys = useMemo(() => {- const filteredIconKeys = Object.keys(icons).filter(- (iconKey) =>+ const filteredIconKeys = Object.keys(icons).filter((iconKey) => {+ return (iconKey !== selectedIconKey &&(!searchString ||[iconKey, convertIconKeyToLabel(iconKey)].some((label) =>label.toLowerCase().includes(searchString.toLowerCase()),- )),- );+ ))+ );+ });return (selectedIconKey