();
const collectionField = useCollectionField();
const dataSource = field.dataSource || collectionField?.uiSchema.enum || [];
- const val = value ? props.value.toString() : value;
return (
{dataSource
- .filter((option) => option.value === val)
+ .filter((option) => option.value == value)
.map((option, key) => (
{option.label}
diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx
index fe1f6a297..c29935c9c 100644
--- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx
+++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx
@@ -38,7 +38,7 @@ export const FieldTitleInput = observer(
useEffect(() => {
setTitleValue(value);
}, [value]);
- return ;
+ return ;
},
{ displayName: 'FieldTitleInput' },
);