mirror of
https://github.com/strapi/strapi.git
synced 2025-07-25 18:05:07 +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 isEqual from 'lodash/isEqual';
|
||||||
import get from 'lodash/get';
|
import get from 'lodash/get';
|
||||||
import set from 'lodash/set';
|
import set from 'lodash/set';
|
||||||
import {
|
import { useNotification, useTracking, ConfirmDialog, Link } from '@strapi/helper-plugin';
|
||||||
useNotification,
|
|
||||||
useTracking,
|
|
||||||
useCustomFields,
|
|
||||||
ConfirmDialog,
|
|
||||||
Link,
|
|
||||||
} from '@strapi/helper-plugin';
|
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import {
|
import {
|
||||||
Main,
|
Main,
|
||||||
@ -58,7 +52,6 @@ const EditSettingsView = ({ mainLayout, components, isContentTypeView, slug, upd
|
|||||||
const modelName = get(mainLayout, ['info', 'displayName'], '');
|
const modelName = get(mainLayout, ['info', 'displayName'], '');
|
||||||
const attributes = get(modifiedData, ['attributes'], {});
|
const attributes = get(modifiedData, ['attributes'], {});
|
||||||
const fieldSizes = useSelector(selectFieldSizes);
|
const fieldSizes = useSelector(selectFieldSizes);
|
||||||
const customFieldsRegistry = useCustomFields();
|
|
||||||
|
|
||||||
const entryTitleOptions = Object.keys(attributes).filter((attr) => {
|
const entryTitleOptions = Object.keys(attributes).filter((attr) => {
|
||||||
const type = get(attributes, [attr, 'type'], '');
|
const type = get(attributes, [attr, 'type'], '');
|
||||||
@ -329,7 +322,6 @@ const EditSettingsView = ({ mainLayout, components, isContentTypeView, slug, upd
|
|||||||
type: 'ON_ADD_FIELD',
|
type: 'ON_ADD_FIELD',
|
||||||
name: field,
|
name: field,
|
||||||
fieldSizes,
|
fieldSizes,
|
||||||
getCustomField: customFieldsRegistry.get,
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
onRemoveField={(rowId, index) => {
|
onRemoveField={(rowId, index) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user