From aa80ac02afdd0b78a557510f873f139241852945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 11 Jun 2021 11:32:18 +0200 Subject: [PATCH] Importing only what is needed from lodash --- webapp/src/theme.ts | 2 +- webapp/src/widgets/propertyMenu.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/theme.ts b/webapp/src/theme.ts index e7fa4935e..242ecfe6c 100644 --- a/webapp/src/theme.ts +++ b/webapp/src/theme.ts @@ -2,7 +2,7 @@ // See LICENSE.txt for license information. import {CSSObject} from '@emotion/serialize' -import {isEqual} from 'lodash' +import isEqual from 'lodash/isEqual' let activeThemeName: string diff --git a/webapp/src/widgets/propertyMenu.tsx b/webapp/src/widgets/propertyMenu.tsx index 1c93ceff2..f7e2dab9e 100644 --- a/webapp/src/widgets/propertyMenu.tsx +++ b/webapp/src/widgets/propertyMenu.tsx @@ -1,7 +1,7 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useState, useRef, useEffect} from 'react' -import {debounce} from 'lodash' +import debounce from 'lodash/debounce' import {useIntl, IntlShape} from 'react-intl' import {PropertyType} from '../blocks/board'