Skip to content

Commit

Permalink
Merge pull request #639 from commercelayer/perf/improve-lodash-import
Browse files Browse the repository at this point in the history
Improve lodash import
  • Loading branch information
malessani committed Apr 30, 2024
2 parents fafe3d8 + dab6c5d commit 86407f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { InputWrapper } from '#ui/internals/InputWrapper'
import { ResourceList } from '#ui/resources/ResourceList'
import { type ListableResourceType } from '@commercelayer/sdk/lib/cjs/api'
import { type QueryFilter } from '@commercelayer/sdk/lib/cjs/query'
import { isEmpty } from 'lodash'
import isEmpty from 'lodash/isEmpty'
import { useEffect, useState } from 'react'
import {
computeLabelWithSelected,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
} from '#ui/forms/InputCurrencyRange'
import { type CommerceLayerClient, type PriceList } from '@commercelayer/sdk'
import { type ListResponse } from '@commercelayer/sdk/lib/cjs/resource'
import { isEmpty, uniq } from 'lodash'
import isEmpty from 'lodash/isEmpty'
import uniq from 'lodash/uniq'
import { useEffect, useState } from 'react'
import { Controller, useFormContext } from 'react-hook-form'
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNumber } from 'lodash'
import isEmpty from 'lodash/isEmpty'
import isNumber from 'lodash/isNumber'
import omitBy from 'lodash/omitBy'
import queryString from 'query-string'
import {
Expand Down

0 comments on commit 86407f0

Please sign in to comment.