File tree Expand file tree Collapse file tree
admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedTypeField Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,21 +42,10 @@ export const RelatedTypeField: React.FC<RelatedTypeFieldProps> = ({
4242 values : formValues ,
4343 } = useNavigationItemFormContext ( ) ;
4444
45- const initialRelatedTypeSelected = current . type === 'INTERNAL' ? current . relatedType : undefined ;
46-
4745 const relatedTypeSelectOptions = useMemo (
4846 ( ) =>
4947 sortBy (
5048 configQuery . data ?. contentTypes
51- ?. filter ( ( contentType ) => {
52- if ( contentType . isSingle ) {
53- return ! ! (
54- currentRelatedType &&
55- [ currentRelatedType , initialRelatedTypeSelected ] . includes ( contentType . uid )
56- ) ;
57- }
58- return true ;
59- } )
6049 . map ( ( item ) => ( {
6150 key : item . uid ,
6251 value : item . uid ,
Original file line number Diff line number Diff line change 11{
22 "name" : " strapi-plugin-navigation" ,
3- "version" : " 3.2.0 " ,
3+ "version" : " 3.2.1 " ,
44 "description" : " Strapi - Navigation plugin" ,
55 "strapi" : {
66 "name" : " navigation" ,
You can’t perform that action at this time.
0 commit comments