mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 03:43:34 +00:00 
			
		
		
		
	Remove unused action function
This commit is contained in:
		
							parent
							
								
									8ae384894e
								
							
						
					
					
						commit
						f9564e0b94
					
				@ -9,13 +9,7 @@ import flatMap from 'lodash/flatMap';
 | 
			
		||||
import isEqual from 'lodash/isEqual';
 | 
			
		||||
import get from 'lodash/get';
 | 
			
		||||
import set from 'lodash/set';
 | 
			
		||||
import {
 | 
			
		||||
  useNotification,
 | 
			
		||||
  useTracking,
 | 
			
		||||
  useCustomFields,
 | 
			
		||||
  ConfirmDialog,
 | 
			
		||||
  Link,
 | 
			
		||||
} from '@strapi/helper-plugin';
 | 
			
		||||
import { useNotification, useTracking, ConfirmDialog, Link } from '@strapi/helper-plugin';
 | 
			
		||||
import { useHistory } from 'react-router-dom';
 | 
			
		||||
import {
 | 
			
		||||
  Main,
 | 
			
		||||
@ -58,7 +52,6 @@ const EditSettingsView = ({ mainLayout, components, isContentTypeView, slug, upd
 | 
			
		||||
  const modelName = get(mainLayout, ['info', 'displayName'], '');
 | 
			
		||||
  const attributes = get(modifiedData, ['attributes'], {});
 | 
			
		||||
  const fieldSizes = useSelector(selectFieldSizes);
 | 
			
		||||
  const customFieldsRegistry = useCustomFields();
 | 
			
		||||
 | 
			
		||||
  const entryTitleOptions = Object.keys(attributes).filter((attr) => {
 | 
			
		||||
    const type = get(attributes, [attr, 'type'], '');
 | 
			
		||||
@ -329,7 +322,6 @@ const EditSettingsView = ({ mainLayout, components, isContentTypeView, slug, upd
 | 
			
		||||
                      type: 'ON_ADD_FIELD',
 | 
			
		||||
                      name: field,
 | 
			
		||||
                      fieldSizes,
 | 
			
		||||
                      getCustomField: customFieldsRegistry.get,
 | 
			
		||||
                    });
 | 
			
		||||
                  }}
 | 
			
		||||
                  onRemoveField={(rowId, index) => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user