mirror of
https://github.com/strapi/strapi.git
synced 2025-07-25 01:49:34 +00:00
Helper-Plugin: Optimize lodash imports
This commit is contained in:
parent
5c923d7e51
commit
d3da03c099
@ -1,4 +1,5 @@
|
|||||||
import { get } from 'lodash';
|
import get from 'lodash/get';
|
||||||
|
|
||||||
import { getType, getOtherInfos } from './getAttributeInfos';
|
import { getType, getOtherInfos } from './getAttributeInfos';
|
||||||
|
|
||||||
const defaultFields = ['createdBy', 'updatedBy', 'publishedAt', 'id', '_id'];
|
const defaultFields = ['createdBy', 'updatedBy', 'publishedAt', 'id', '_id'];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// TODO @soupette we need to refactor this file
|
// TODO @soupette we need to refactor this file
|
||||||
|
|
||||||
import { isNil } from 'lodash';
|
import isNil from 'lodash/isNil';
|
||||||
import isEmpty from 'lodash/isEmpty';
|
import isEmpty from 'lodash/isEmpty';
|
||||||
|
|
||||||
const TOKEN_KEY = 'jwtToken';
|
const TOKEN_KEY = 'jwtToken';
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
import { isEmpty, pickBy, transform } from 'lodash';
|
import isEmpty from 'lodash/isEmpty';
|
||||||
|
import pickBy from 'lodash/pickBy';
|
||||||
|
import transform from 'lodash/transform';
|
||||||
|
|
||||||
import request from '../request';
|
import request from '../request';
|
||||||
|
|
||||||
const findMatchingPermissions = (userPermissions, permissions) => {
|
const findMatchingPermissions = (userPermissions, permissions) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user