From a8acc4af9e6a42b66a2b9b314672711d8eb8246d Mon Sep 17 00:00:00 2001 From: Richard Olsson Date: Sun, 5 Jan 2025 05:18:59 +0100 Subject: [PATCH] Import only the needed functions --- src/utils/omitUndefined.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/omitUndefined.ts b/src/utils/omitUndefined.ts index da2cd309a..96c8b3a6d 100644 --- a/src/utils/omitUndefined.ts +++ b/src/utils/omitUndefined.ts @@ -1,4 +1,4 @@ -import _ from 'lodash'; +import { isUndefined, omitBy } from 'lodash'; /** * Omits properties with `undefined` values from an object. @@ -8,4 +8,4 @@ import _ from 'lodash'; */ export const omitUndefined = ( obj: Record -): Record => _.omitBy(obj, _.isUndefined); +): Record => omitBy(obj, isUndefined);