Helper-Plugin: Optimize lodash imports

This commit is contained in:
Gustav Hansen 2023-03-17 13:52:44 +01:00
parent 5c923d7e51
commit d3da03c099
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import { get } from 'lodash';
import get from 'lodash/get';
import { getType, getOtherInfos } from './getAttributeInfos';
const defaultFields = ['createdBy', 'updatedBy', 'publishedAt', 'id', '_id'];

View File

@ -1,6 +1,6 @@
// TODO @soupette we need to refactor this file
import { isNil } from 'lodash';
import isNil from 'lodash/isNil';
import isEmpty from 'lodash/isEmpty';
const TOKEN_KEY = 'jwtToken';

View File

@ -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';
const findMatchingPermissions = (userPermissions, permissions) => {